diff options
| author | Matt Corallo <[email protected]> | 2015-08-26 18:58:17 -0700 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2015-11-30 13:02:04 -0500 |
| commit | 9b060e5cfb0d185b553b21ae19d390f81e83bd4d (patch) | |
| tree | 102cf99621b43a118cc0239990bf5a25614f43d6 /src/main.cpp | |
| parent | Add failing test checking timelocked-txn removal during reorg (diff) | |
| download | discoin-9b060e5cfb0d185b553b21ae19d390f81e83bd4d.tar.xz discoin-9b060e5cfb0d185b553b21ae19d390f81e83bd4d.zip | |
Fix removal of time-locked transactions during reorg
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 55b051734..3422c56cf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); |