HomePhabricator

scripted-diff: Rename message command to message type

Description

scripted-diff: Rename message command to message type

Summary:
This PR is a follow-up to D8460 and D14772:

a message is not a command, but simply a message of some type

-BEGIN VERIFY SCRIPT-

 s1() { sed -i "s/$1/$2/g" $(git grep -l "$1" ./); }

 s1 'NET_MESSAGE_COMMAND_OTHER' 'NET_MESSAGE_TYPE_OTHER'
 s1 'mapMsgCmdSize' 'mapMsgTypeSize'
 s1 'mapRecvBytesPerMsgCmd' 'mapRecvBytesPerMsgType'
 s1 'mapSendBytesPerMsgCmd' 'mapSendBytesPerMsgType'
 s1 'recvPerMsgCmd' 'recvPerMsgType'
 s1 'sendPerMsgCmd' 'sendPerMsgType'

-END VERIFY SCRIPT-

This is a partial backport of core#24141
https://github.com/bitcoin/bitcoin/pull/24141/commits/2b09593bddb0a93aebf84e5f43cdb4d5282c7984

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Jun 14 2025, 12:41
PiRKPushed on Jun 17 2025, 09:25
Reviewer
Restricted Project
Differential Revision
D18252: scripted-diff: Rename message command to message type
Parents
rABC3d7929145068: refactor: Use reference instead of pointer in IsBlockPruned
Branches
Unknown
Tags
Unknown