diff options
| author | Matt Corallo <[email protected]> | 2019-01-18 12:58:41 +1000 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2019-05-02 15:10:32 -0400 |
| commit | c8b0d22698385f91215ce8145631e3d5826dc977 (patch) | |
| tree | f3ff70231f17bc4a7d232a7084825cb0b91efe8d /src/net_processing.cpp | |
| parent | [refactor] Add useful-for-dos "reason" field to CValidationState (diff) | |
| download | discoin-c8b0d22698385f91215ce8145631e3d5826dc977.tar.xz discoin-c8b0d22698385f91215ce8145631e3d5826dc977.zip | |
[refactor] Drop redundant nDoS, corruptionPossible, SetCorruptionPossible
Co-authored-by: Anthony Towns <[email protected]>
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 489ffcdc6..a416093db 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -961,7 +961,6 @@ void Misbehaving(NodeId pnode, int howmuch, const std::string& message) EXCLUSIV static bool TxRelayMayResultInDisconnect(const CValidationState& state) { - assert(state.GetDoS() == state.GetDoSForReason()); return (state.GetDoS() > 0); } @@ -976,7 +975,6 @@ static bool TxRelayMayResultInDisconnect(const CValidationState& state) * txs, the peer should not be punished. See BIP 152. */ static bool MaybePunishNode(NodeId nodeid, const CValidationState& state, bool via_compact_block, const std::string& message = "") { - assert(state.GetDoS() == state.GetDoSForReason()); int nDoS = state.GetDoS(); if (nDoS > 0 && !via_compact_block) { LOCK(cs_main); |