diff options
| author | Pieter Wuille <[email protected]> | 2013-09-25 04:41:02 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-09-25 04:41:02 -0700 |
| commit | d14b86730b22db92df3c1cec89bc43d20a12a898 (patch) | |
| tree | 5197cf4992f5709cd8b2f861d234e81ae19f8d9b /src/main.cpp | |
| parent | Merge pull request #2791 from sipa/proveprune (diff) | |
| parent | Skip unspendable outputs in consistency check (diff) | |
| download | discoin-d14b86730b22db92df3c1cec89bc43d20a12a898.tar.xz discoin-d14b86730b22db92df3c1cec89bc43d20a12a898.zip | |
Merge pull request #3026 from sipa/checkunspend
Skip unspendable outputs in consistency check
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 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. |