refactor: Pass reference to last header, not pointer#26378
Hidden character warning
refactor: Pass reference to last header, not pointer#26378maflcko merged 1 commit intobitcoin:masterfrom
Conversation
It is never a nullptr, otherwise an assertion would fire in UpdatePeerStateForReceivedHeaders. Passing a reference makes the code easier to read and less brittle.
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
ConflictsReviewers, 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 I don't know the policy on unrelated spelling corrections, but maybe this is a good place to fix the log line at 2867: bitcoin/src/net_processing.cpp Line 2867 in fa579f3 I think it should read "to send to" rather than "to end to". |
|
"to end" is correct, meaning "to their chain tip" |
It is never a nullptr, otherwise an assertion would fire in UpdatePeerStateForReceivedHeaders.
Passing a reference makes the code easier to read and less brittle.