aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2024-12-23 10:33:54 -0500
committerluigi1111 <luigi1111w@gmail.com>2024-12-23 10:33:54 -0500
commit8f531676b5506a6d07b7f7f102b2ab3aa6215fd1 (patch)
treeb53ef26964e18d8e1f94f7022d3dd118d8534cb7 /src/cryptonote_core
parent58a1d54a4f90a235616ede3f8ebae2b8dca41589 (diff)
parentf0a574c3a9eed6b9e1a9b7a27a32d059e9a58595 (diff)
downloadmonzero-core-8f531676b5506a6d07b7f7f102b2ab3aa6215fd1.tar.gz
monzero-core-8f531676b5506a6d07b7f7f102b2ab3aa6215fd1.tar.xz
monzero-core-8f531676b5506a6d07b7f7f102b2ab3aa6215fd1.zip
Merge pull request #9400
f0a574c Blockchain: fix temp fails causing alt blocks to be permanently invalid (jeffro256)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index ca63d36a7..ccb889531 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -1210,12 +1210,7 @@ bool Blockchain::switch_to_alternative_blockchain(std::list<block_extended_info>
// just the latter (because the rollback was done above).
rollback_blockchain_switching(disconnected_chain, split_height);
- // FIXME: Why do we keep invalid blocks around? Possibly in case we hear
- // about them again so we can immediately dismiss them, but needs some
- // looking into.
const crypto::hash blkid = cryptonote::get_block_hash(bei.bl);
- add_block_as_invalid(bei, blkid);
- MERROR("The block was inserted as invalid while connecting new alternative chain, block_id: " << blkid);
m_db->remove_alt_block(blkid);
alt_ch_iter++;
@@ -1223,7 +1218,6 @@ bool Blockchain::switch_to_alternative_blockchain(std::list<block_extended_info>
{
const auto &bei = *alt_ch_to_orph_iter++;
const crypto::hash blkid = cryptonote::get_block_hash(bei.bl);
- add_block_as_invalid(bei, blkid);
m_db->remove_alt_block(blkid);
}
return false;