[[https://github.com/bitcoin/bitcoin/pull/21713 | core#21713]]
> Refactor ProcessNewBlock to reduce code duplication
----
[[https://github.com/bitcoin/bitcoin/pull/22106 | 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 [[https://github.com/bitcoin/bitcoin/pull/21713 | core#21713]] and core22106