It is never a nullptr, otherwise an assertion would fire in UpdatePeerStateForReceivedHeaders.
Passing a reference makes the code easier to read and less brittle.
It is never a nullptr, otherwise an assertion would fire in UpdatePeerStateForReceivedHeaders.
Passing a reference makes the code easier to read and less brittle.
It is never a nullptr, otherwise an assertion would fire in
UpdatePeerStateForReceivedHeaders.
Passing a reference makes the code easier to read and less brittle.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Count | Reviewers |
|---|---|---|
| ACK | 2 | aureleoules, john-moffett |
| Concept ACK | 1 | dergoegge |
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Concept ACK
ACK fa579f3
Code review and rebased on master. Built/tests/ran bitcoind. Agree with using assert instead of Assume. The renamed parameters are clearer.
I don't know the policy on unrelated spelling corrections, but maybe this is a good place to fix the log line at 2867: https://github.com/bitcoin/bitcoin/blob/fa579f306363ed03c1138121415b67b9b36b4d53/src/net_processing.cpp#L2867
I think it should read "to send to" rather than "to end to".
"to end" is correct, meaning "to their chain tip"
ACK fa579f306363ed03c1138121415b67b9b36b4d53