diff options
| author | Matt Corallo <[email protected]> | 2014-11-11 20:57:54 -0800 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2014-12-08 14:05:42 -0800 |
| commit | 723d12c098456e7682e641076e76468a9fb0cec0 (patch) | |
| tree | f50a3c3ee4baa4e0507dc1befda01ed03784d8af /src/main.cpp | |
| parent | Remove coinbase-dependant transactions during reorg. (diff) | |
| download | discoin-723d12c098456e7682e641076e76468a9fb0cec0.tar.xz discoin-723d12c098456e7682e641076e76468a9fb0cec0.zip | |
Remove txn which are invalidated by coinbase maturity during reorg
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3a2c167e8..9e1c41ada 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1895,6 +1895,7 @@ bool static DisconnectTip(CValidationState &state) { if (tx.IsCoinBase() || !AcceptToMemoryPool(mempool, stateDummy, tx, false, NULL)) mempool.remove(tx, removed, true); } + mempool.removeCoinbaseSpends(pcoinsTip, pindexDelete->nHeight); mempool.check(pcoinsTip); // Update chainActive and related variables. UpdateTip(pindexDelete->pprev); |