Page MenuHomePhabricator

p2p: clean up Misbehaving()
ClosedPublic

Authored by Fabien on Jan 5 2021, 14:48.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC772ce2616568: p2p: clean up Misbehaving()
Summary
This PR makes a few minor clean-ups to Misbehaving() in preparation to
move it out of the cs_main lock.

There are very minor logging changes but otherwise no functional
changes.

Backport of core PR19583.

Depends on D8792.

Some of our Misbehaving messages are updated to match core messages.

Test Plan
ninja all check-all

Diff Detail

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

Event Timeline

Fabien requested review of this revision.Jan 5 2021, 14:48
majcosta requested changes to this revision.Jan 5 2021, 20:50
majcosta added a subscriber: majcosta.
majcosta added inline comments.
src/net_processing.cpp
3492–3493 ↗(On Diff #26637)

I think this is misplaced with the change to the call to Misbehaving in line 3652

This revision now requires changes to proceed.Jan 5 2021, 20:50

Fix misplaced misbahving message

This revision is now accepted and ready to land.Jan 6 2021, 09:20
This revision was automatically updated to reflect the committed changes.