Page MenuHomePhabricator

p2p: refactor: tidy up `PeerManagerImpl::Misbehaving(...)`
ClosedPublic

Authored by PiRK on Mar 15 2023, 10:32.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC7a47f32cce54: p2p: refactor: tidy up `PeerManagerImpl::Misbehaving(...)`
Summary
  • introduce constant variables score_before and score_after in order to improve readability
  • deduplicate calls to LogPrint(), eliminates else-branch
  • update BAN to DISCOURAGE in logs (missed in D6506)

This is a backport of core#22495

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable