aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2013-10-25 03:52:53 -0400
committerMatt Corallo <git@bluematt.me>2013-10-27 02:23:36 -0400
commitb33b9a6fefbe832bf45a6c7717d0537f27597bff (patch)
treeebfceaa18cc0391e0c10b3cdad4d3a15e21bab7b /src/main.h
parente2130051778027c1120b90bf2975b933b2d02034 (diff)
downloadbitcoin-b33b9a6fefbe832bf45a6c7717d0537f27597bff.tar.xz
Fix comparison tool by asking for blocks more aggressively
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index 76de47071e..2a67747b47 100644
--- a/src/main.h
+++ b/src/main.h
@@ -946,13 +946,15 @@ private:
MODE_ERROR, // run-time error
} mode;
int nDoS;
+ bool corruptionPossible;
public:
CValidationState() : mode(MODE_VALID), nDoS(0) {}
- bool DoS(int level, bool ret = false) {
+ bool DoS(int level, bool ret = false, bool corruptionIn = false) {
if (mode == MODE_ERROR)
return ret;
nDoS += level;
mode = MODE_INVALID;
+ corruptionPossible = corruptionIn;
return ret;
}
bool Invalid(bool ret = false) {
@@ -982,6 +984,9 @@ public:
}
return false;
}
+ bool CorruptionPossible() {
+ return corruptionPossible;
+ }
};
/** An in-memory indexed chain of blocks. */