v29.4-roots.3 · Commit 9: [PATCH 09/30] fix: complete reconstructed runtime integration
src/validation.cpp
Before: src/validation.cpp · After: src/validation.cpp
File metadata
index c2530e7d119fcc4fe7fb0f89824eeaad60e13a37..cf1473a6d61f51b6b20de1705c96c0ae82d8e132 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
|
@@ -3392,6 +3392,9 @@ bool Chainstate::DisconnectTip(BlockValidationState& state, DisconnectedBlockTra
|
|
|
3392
3392
|
}
|
|
3393
3393
|
|
|
3394
3394
|
if (disconnectpool && m_mempool) {
|
|
3395
|
+
for (auto it = block.vtx.rbegin(); it != block.vtx.rend(); ++it) {
|
|
3396
|
+
m_mempool->UpdateDependentPriorities(*(*it), pindexDelete->nHeight, false);
|
|
3397
|
+
}
|
|
3395
3398
|
// Save transactions to re-add to mempool at end of reorg. If any entries are evicted for
|
|
3396
3399
|
// exceeding memory limits, remove them and their descendants from the mempool.
|
|
3397
3400
|
for (auto&& evicted_tx : disconnectpool->AddTransactionsFromBlock(block.vtx)) {
|