From 8818729013e17c650a25f030b2b80e0997389155 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 16 Apr 2018 12:52:03 -0400 Subject: [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 Suhas Daftuar John Newbery --- src/consensus/validation.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/consensus') 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; } -- cgit v1.2.3