diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-01-14 17:41:46 -0500 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-01-14 17:41:46 -0500 |
commit | 40e0b70075608cae9810de1667cdfe0b879049e1 (patch) | |
tree | 901b3b7d434cfc01b2954ba84a5fab9bed75fe46 /src/cryptonote_core/blockchain.cpp | |
parent | Merge pull request #21 from warptangent/fix_block_reorg (diff) | |
parent | Remove code previously made unused and marked unused (diff) | |
download | monero-40e0b70075608cae9810de1667cdfe0b879049e1.tar.xz |
Merge #22
Remove code previously made unused and marked unused
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 4fa868abe..88ae9d136 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -2028,24 +2028,6 @@ bool Blockchain::handle_block_to_main_chain(const block& bl, const crypto::hash& { LOG_PRINT_L3("Blockchain::" << __func__); - // NOTE: Omitting check below with have_block() It causes an error after a - // blockchain reorganize begins with error: "Attempting to add block to main - // chain, but it's already either there or in an alternate" - // - // A block in the alternative chain, desired to become the main chain, never - // makes it due to have_block finding it in he alternative chain. - // - // Original implementation didn't use it here, and it doesn't appear - // necessary to be called from here in this implementation either. - - // if we already have the block, return false - // if (have_block(id)) - // { - // LOG_PRINT_L0("Attempting to add block to main chain, but it's already either there or in an alternate chain. hash: " << id); - // bvc.m_verifivation_failed = true; - // return false; - // } - TIME_MEASURE_START(block_processing_time); CRITICAL_REGION_LOCAL(m_blockchain_lock); if(bl.prev_id != get_tail_id()) |