diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 2b68f647..67ca688a 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -363,13 +363,16 @@ bool blockchain_storage::init(const std::string& config_folder, const boost::pro //------------------------------------------------------------------ bool blockchain_storage::set_lost_tx_unmixable_for_height(uint64_t height) { +#ifndef TESTNET if (height == 75738) return set_lost_tx_unmixable(); +#endif return true; } //------------------------------------------------------------------ bool blockchain_storage::set_lost_tx_unmixable() { +#ifndef TESTNET if (m_db_blocks.size() > 75738) { crypto::hash tx_id_1 = epee::string_tools::parse_tpod_from_hex_string("c2a2229d614e7c026433efbcfdbd0be1f68d9b419220336df3e2c209f5d57314"); @@ -393,11 +396,13 @@ bool blockchain_storage::set_lost_tx_unmixable() } m_db_transactions.set(tx_id_2, tx2_local_entry); } +#endif return true; } //------------------------------------------------------------------ void blockchain_storage::patch_out_if_needed(txout_to_key& out, const crypto::hash& tx_id, uint64_t n) const { +#ifndef TESTNET static crypto::hash tx_id_1 = epee::string_tools::parse_tpod_from_hex_string("c2a2229d614e7c026433efbcfdbd0be1f68d9b419220336df3e2c209f5d57314"); static crypto::hash tx_id_2 = epee::string_tools::parse_tpod_from_hex_string("647f936c6ffbd136f5c95d9a90ad554bdb4c01541c6eb5755ad40b984d80da67"); @@ -408,6 +413,7 @@ void blockchain_storage::patch_out_if_needed(txout_to_key& out, const crypto::h { out.mix_attr = CURRENCY_TO_KEY_OUT_FORCED_NO_MIX; } +#endif } //------------------------------------------------------------------ void blockchain_storage::store_db_solo_options_values()