HomePhabricator

net: use CMessageHeader::HEADER_SIZE, add missing include

Description

net: use CMessageHeader::HEADER_SIZE, add missing include

Summary:
static constexpr CMessageHeader::HEADER_SIZE is already used in this file,
src/net.cpp, in 2 instances. This commit replaces the remaining 2 integer
values with it and adds the explicit include header.

Co-authored by: Gleb Naumenko <naumenko.gs@gmail.com>

This is a backport of Core PR18931

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D9094

Details

Provenance
Jon Atack <jon@atack.com>Authored on Jan 28 2021, 10:51
PiRKCommitted on Jan 28 2021, 10:51
abc-botPushed on Jan 28 2021, 10:58
Reviewer
Restricted Project
Differential Revision
D9094: net: use CMessageHeader::HEADER_SIZE, add missing include
Parents
rABCa28207584448: [docs] Improve commenting in ProcessGetData()
Branches
Unknown
Tags
Unknown