aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-09-25 04:41:02 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2013-09-25 04:41:02 -0700
commitd14b86730b22db92df3c1cec89bc43d20a12a898 (patch)
tree5197cf4992f5709cd8b2f861d234e81ae19f8d9b /src/main.cpp
parentfb8724ee6caa0e55bba9849d9a672b5467bcbc0f (diff)
parent99740bab9c38837ab575fdc00343afa68d62ab68 (diff)
Merge pull request #3026 from sipa/checkunspend
Skip unspendable outputs in consistency check
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5ee2deffc6..f44a58d597 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1781,6 +1781,7 @@ bool DisconnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex
view.SetCoins(hash, CCoins());
}
CCoins &outs = view.GetCoins(hash);
+ outs.ClearUnspendable();
CCoins outsBlock = CCoins(tx, pindex->nHeight);
// The CCoins serialization does not serialize negative numbers.