aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/validation.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2018-04-16 12:52:03 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2019-05-02 11:00:19 -0400
commit8818729013e17c650a25f030b2b80e0997389155 (patch)
treed9fea6eb7676e1b669920958a8a2380830386696 /src/consensus/validation.h
parent00e11e61c0211a62788611cd6a6714a393fdc26c (diff)
[refactor] Refactor misbehavior ban decisions to MaybePunishNode()
Isolate the decision of whether to ban a peer to one place in the code, rather than having it sprinkled throughout net_processing. Co-authored-by: Anthony Towns <aj@erisian.com.au> Suhas Daftuar <sdaftuar@gmail.com> John Newbery <john@johnnewbery.com>
Diffstat (limited to 'src/consensus/validation.h')
-rw-r--r--src/consensus/validation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/consensus/validation.h b/src/consensus/validation.h
index f2e2c3585a..36142e1e41 100644
--- a/src/consensus/validation.h
+++ b/src/consensus/validation.h
@@ -84,6 +84,7 @@ public:
void SetCorruptionPossible() {
corruptionPossible = true;
}
+ int GetDoS(void) const { return nDoS; }
unsigned int GetRejectCode() const { return chRejectCode; }
std::string GetRejectReason() const { return strRejectReason; }
std::string GetDebugMessage() const { return strDebugMessage; }