Skip unspendable outputs in consistency check

This commit is contained in:
Pieter Wuille
2013-09-24 14:11:17 +02:00
committed by Pieter Wuille
parent fb8724ee6c
commit 99740bab9c
2 changed files with 10 additions and 5 deletions

View File

@@ -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.