HomePhabricator

net_processing: make all Misbehaving increments = 100

Description

net_processing: make all Misbehaving increments = 100

Summary:
This removes the need to actually track misbehavior score (see further commit), because any
Misbehaving node will immediately hit the discouragement threshold.

This is a partial backport of core#29575
https://github.com/bitcoin/bitcoin/pull/29575/commits/6457c311977bba3585648e32e3bd5754028aa292

Depends on D18031

Test Plan:
ninja all check-all-extended

run an ibd with -assumevalid=0 -checkpoints=0`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18032

Details

Provenance
Pieter Wuille <pieter@wuille.net>Authored on Mar 5 2024, 13:28
PiRKCommitted on Thu, May 1, 13:40
PiRKPushed on Thu, May 1, 13:40
Reviewer
Restricted Project
Differential Revision
D18032: net_processing: make all Misbehaving increments = 100
Parents
rABC200ecd0e8c88: net_processing: drop 8 headers threshold for incoming BIP130
Branches
Unknown
Tags
Unknown