aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-12-30 15:29:39 +0100
committerPieter Wuille <pieter.wuille@gmail.com>2013-01-03 15:29:19 +0100
commit2cbd71da06a14ffe823440973f8a87032bbe0b1e (patch)
tree0ff9a4240080c3d7adae741b543a0b0d84842ac1 /src/main.h
parentea9788517bfa3e53e192c5af9e64e73625f9db74 (diff)
downloadbitcoin-2cbd71da06a14ffe823440973f8a87032bbe0b1e.tar.xz
Make DisconnectBlock fault-tolerant
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h7
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);