Fix removal of time-locked transactions during reorg

This commit is contained in:
Matt Corallo
2015-08-26 18:58:17 -07:00
committed by Suhas Daftuar
parent 0c9959a308
commit 9b060e5cfb
3 changed files with 17 additions and 12 deletions

View File

@@ -2350,7 +2350,7 @@ bool static DisconnectTip(CValidationState& state, const Consensus::Params& cons
// UpdateTransactionsFromBlock finds descendants of any transactions in this
// block that were added back and cleans up the mempool state.
mempool.UpdateTransactionsFromBlock(vHashUpdate);
mempool.removeCoinbaseSpends(pcoinsTip, pindexDelete->nHeight);
mempool.removeForReorg(pcoinsTip, pindexDelete->nHeight);
mempool.check(pcoinsTip);
// Update chainActive and related variables.
UpdateTip(pindexDelete->pprev);