Page MenuHomePhabricator

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

Authored by PiRK on Oct 10 2022, 08:17.

Details

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

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Oct 10 2022, 08:17

fix accidental file mode modification (chmod -x src/net_processing.cpp)

I'm not sure how this happened. Maybe an accidental IDE shortcut activation.

This revision is now accepted and ready to land.Oct 10 2022, 12:17