HomePhabricator

Refactor ProcessNewBlock calls to reduce code duplication and take a CBlock…

Description

Refactor ProcessNewBlock calls to reduce code duplication and take a CBlock reference

Summary:
core#21713

Refactor ProcessNewBlock to reduce code duplication


core#22106

validation: change ProcessNewBlock() to take a CBlock reference

Update ProcessNewBlock arguments to newer style.

net: cleanup newly added PeerManagerImpl::ProcessBlock

Addresses some post-merge comments.


This is a backport of core#21713 and core#22106

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
R E Broadley <rebroad+github@gmail.com>Authored on Apr 16 2021, 23:43
PiRKCommitted on Oct 10 2022, 13:07
PiRKPushed on Oct 10 2022, 13:07
Reviewer
Restricted Project
Differential Revision
D12184: Refactor ProcessNewBlock calls to reduce code duplication and take a CBlock reference
Parents
rABC7e8aab945660: [Automated] Update timing.json
Branches
Unknown
Tags
Unknown