mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-04 04:53:19 +00: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.cpp | ||
account.h | ||
account_boost_serialization.h | ||
blockchain.cpp | ||
blockchain.h | ||
blockchain_db.cpp | ||
blockchain_db.h | ||
blockchain_storage.cpp | ||
blockchain_storage.h | ||
blockchain_storage_boost_serialization.h | ||
checkpoints.cpp | ||
checkpoints.h | ||
checkpoints_create.cpp | ||
checkpoints_create.h | ||
CMakeLists.txt | ||
connection_context.h | ||
cryptonote_basic.h | ||
cryptonote_basic_impl.cpp | ||
cryptonote_basic_impl.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 |