diff options
| author | Matt Corallo <[email protected]> | 2018-04-16 12:52:03 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2019-05-02 11:00:19 -0400 |
| commit | 8818729013e17c650a25f030b2b80e0997389155 (patch) | |
| tree | d9fea6eb7676e1b669920958a8a2380830386696 /src/consensus/validation.h | |
| parent | [refactor] rename stateDummy -> orphan_state (diff) | |
| download | discoin-8818729013e17c650a25f030b2b80e0997389155.tar.xz discoin-8818729013e17c650a25f030b2b80e0997389155.zip | |
[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 <[email protected]>
Suhas Daftuar <[email protected]>
John Newbery <[email protected]>
Diffstat (limited to 'src/consensus/validation.h')
| -rw-r--r-- | src/consensus/validation.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/consensus/validation.h b/src/consensus/validation.h index f2e2c3585..36142e1e4 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; } |