Page MenuHomePhabricator

refactor: Pass reference to last header, not pointer
Needs ReviewPublic

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

Details

Reviewers
None
Group Reviewers
Restricted Project
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