Page MenuHomePhabricator

scripted-diff: Rename message command to message type
ClosedPublic

Authored by PiRK on Jun 14 2025, 13:30.

Details

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

Diff Detail

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