Page MenuHomePhabricator

net: use CMessageHeader::HEADER_SIZE, add missing include
ClosedPublic

Authored by PiRK on Jan 28 2021, 07:37.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC52644a5e025e: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable