diff options
author | Matt Corallo <git@bluematt.me> | 2014-11-11 20:57:54 -0800 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2014-12-08 14:05:42 -0800 |
commit | 723d12c098456e7682e641076e76468a9fb0cec0 (patch) | |
tree | f50a3c3ee4baa4e0507dc1befda01ed03784d8af /src/main.cpp | |
parent | 868d041622e2f589ab4535c30ce683534b6d4f71 (diff) | |
download | bitcoin-723d12c098456e7682e641076e76468a9fb0cec0.tar.xz |
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 3a2c167e80..9e1c41ada7 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); |