From 99740bab9c38837ab575fdc00343afa68d62ab68 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Tue, 24 Sep 2013 14:11:17 +0200 Subject: Skip unspendable outputs in consistency check --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 5ee2deffc..f44a58d59 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. -- cgit v1.2.3