mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
[refactor] Drop redundant nDoS, corruptionPossible, SetCorruptionPossible
Co-authored-by: Anthony Towns <aj@erisian.com.au>
This commit is contained in:
parent
34477ccd39
commit
c8b0d22698
2 changed files with 5 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue