diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-12-30 15:29:39 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2013-01-03 15:29:19 +0100 |
commit | 2cbd71da06a14ffe823440973f8a87032bbe0b1e (patch) | |
tree | 0ff9a4240080c3d7adae741b543a0b0d84842ac1 /src/main.h | |
parent | ea9788517bfa3e53e192c5af9e64e73625f9db74 (diff) |
Make DisconnectBlock fault-tolerant
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h index 8bceffbaf9..80fd76452b 100644 --- a/src/main.h +++ b/src/main.h @@ -1305,8 +1305,11 @@ public: } - // Undo the effects of this block (with given index) on the UTXO set represented by coins - bool DisconnectBlock(CBlockIndex *pindex, CCoinsViewCache &coins); + /** Undo the effects of this block (with given index) on the UTXO set represented by coins. + * In case pfClean is provided, operation will try to be tolerant about errors, and *pfClean + * will be true if no problems were found. Otherwise, the return value will be false in case + * of problems. Note that in any case, coins may be modified. */ + bool DisconnectBlock(CBlockIndex *pindex, CCoinsViewCache &coins, bool *pfClean = NULL); // Apply the effects of this block (with given index) on the UTXO set represented by coins bool ConnectBlock(CBlockIndex *pindex, CCoinsViewCache &coins, bool fJustCheck=false); |