Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 9: [PATCH 09/68] fix: complete reconstructed runtime integration

src/validation.cpp

Before: src/validation.cpp · After: src/validation.cpp

File metadata
index 89daf215e6c9aec6905aa611c1c360fc980e9921..41c00262a30b6d8c629c87c4e24386fb5b473d8e 100644

Download original patch · Release notes

Diff rows 1–9 of 9. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

src/validation.cpp CHANGED
@@ -3350,6 +3350,9 @@ bool Chainstate::DisconnectTip(BlockValidationState& state, DisconnectedBlockTra
3350
3350
  }
3351
3351
 
3352
3352
  if (disconnectpool && m_mempool) {
3353
+ for (auto it = block.vtx.rbegin(); it != block.vtx.rend(); ++it) {
3354
+ m_mempool->UpdateDependentPriorities(*(*it), pindexDelete->nHeight, false);
3355
+ }
3353
3356
  // Save transactions to re-add to mempool at end of reorg. If any entries are evicted for
3354
3357
  // exceeding memory limits, remove them and their descendants from the mempool.
3355
3358
  for (auto&& evicted_tx : disconnectpool->AddTransactionsFromBlock(block.vtx)) {