mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
909ea81067
Remove have_block() check from Blockchain::handle_block_to_main_chain(). Add logging to have_block(). This allows blockchain reorganization to proceed further. have_block() check here 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 chain." While reorganizing to become the main chain, a block in the alternative chain would be refused due to have_block() rightfully finding it in the alternative chain. The reorganization would end in rollback, restoring to previous blockchain. Original implementation didn't call it here, and it doesn't appear necessary to be called from here in this implementation either. When needed, it appears it's called prior to handle_block_to_main_chain(). |
||
---|---|---|
.. | ||
BlockchainDB_impl | ||
account_boost_serialization.h | ||
account.cpp | ||
account.h | ||
blockchain_db.cpp | ||
blockchain_db.h | ||
blockchain_storage_boost_serialization.h | ||
blockchain_storage.cpp | ||
blockchain_storage.h | ||
blockchain.cpp | ||
blockchain.h | ||
checkpoints_create.cpp | ||
checkpoints_create.h | ||
checkpoints.cpp | ||
checkpoints.h | ||
CMakeLists.txt | ||
connection_context.h | ||
cryptonote_basic_impl.cpp | ||
cryptonote_basic_impl.h | ||
cryptonote_basic.h | ||
cryptonote_boost_serialization.h | ||
cryptonote_core.cpp | ||
cryptonote_core.h | ||
cryptonote_format_utils.cpp | ||
cryptonote_format_utils.h | ||
cryptonote_stat_info.h | ||
difficulty.cpp | ||
difficulty.h | ||
miner.cpp | ||
miner.h | ||
tx_extra.h | ||
tx_pool.cpp | ||
tx_pool.h | ||
verification_context.h |