forked from lthn/blockchain
fixed testnet synchronization
This commit is contained in:
parent
ddc5a4468a
commit
64d0d1a4ea
1 changed files with 6 additions and 0 deletions
|
|
@ -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<crypto::hash>("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<crypto::hash>("c2a2229d614e7c026433efbcfdbd0be1f68d9b419220336df3e2c209f5d57314");
|
||||
static crypto::hash tx_id_2 = epee::string_tools::parse_tpod_from_hex_string<crypto::hash>("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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue