aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/validation.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2019-01-17 14:48:25 +1000
committerSuhas Daftuar <sdaftuar@gmail.com>2019-05-02 11:00:19 -0400
commitb8b4c80146780f9011abbd1be72343cc965c07b9 (patch)
treef96b9894a37d073925dd0f0321631661f8ccc254 /src/consensus/validation.h
parent8818729013e17c650a25f030b2b80e0997389155 (diff)
[refactor] drop IsInvalid(nDoSOut)
Co-authored-by: Anthony Towns <aj@erisian.com.au>
Diffstat (limited to 'src/consensus/validation.h')
-rw-r--r--src/consensus/validation.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/consensus/validation.h b/src/consensus/validation.h
index 36142e1e41..163b17e629 100644
--- a/src/consensus/validation.h
+++ b/src/consensus/validation.h
@@ -71,13 +71,6 @@ public:
bool IsError() const {
return mode == MODE_ERROR;
}
- bool IsInvalid(int &nDoSOut) const {
- if (IsInvalid()) {
- nDoSOut = nDoS;
- return true;
- }
- return false;
- }
bool CorruptionPossible() const {
return corruptionPossible;
}