diff options
| author | Matt Corallo <[email protected]> | 2013-10-25 03:52:53 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2013-10-27 02:23:36 -0400 |
| commit | b33b9a6fefbe832bf45a6c7717d0537f27597bff (patch) | |
| tree | ebfceaa18cc0391e0c10b3cdad4d3a15e21bab7b /src/main.h | |
| parent | Merge pull request #3153 (diff) | |
| download | discoin-b33b9a6fefbe832bf45a6c7717d0537f27597bff.tar.xz discoin-b33b9a6fefbe832bf45a6c7717d0537f27597bff.zip | |
Fix comparison tool by asking for blocks more aggressively
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h index 76de47071..2a67747b4 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. */ |