Page MenuHomePhabricator

refactor: Pass reference to last header, not pointer
ClosedPublic

Authored by PiRK on Sep 27 2024, 15:23.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC9206721dbb4f: refactor: Pass reference to last header, not pointer
Summary

It is never a nullptr, otherwise an assertion would fire in
UpdatePeerStateForReceivedHeaders.

Passing a reference makes the code easier to read and less brittle.

This is a backport of core#26378

Test Plan

ninja all check-all