HomePhabricator

scripted-diff: get rid of remaining "command" terminology in protocol.{h,cpp}

Description

scripted-diff: get rid of remaining "command" terminology in protocol.{h,cpp}

Summary:

-BEGIN VERIFY SCRIPT-
sed -i s/COMMAND_SIZE/MESSAGE_TYPE_SIZE/g $(git grep -l COMMAND_SIZE)
sed -i s/pszCommand/msg_type/g $(git grep -l pszCommand)
sed -i s/pchCommand/m_msg_type/g $(git grep -l pchCommand)
sed -i s/GetCommand/GetMessageType/g ./src/net.cpp ./src/protocol.cpp ./src/protocol.h ./src/test/fuzz/protocol.cpp ./src/seeder/bitcoin.cpp ./src/seeder/test/p2p_messaging_tests.cpp ./src/test/inv_tests.cpp
sed -i s/IsCommandValid/IsMessageTypeValid/g $(git grep -l IsCommandValid)
sed -i "s/command/message type/g" ./src/protocol.h ./src/protocol.cpp
-END VERIFY SCRIPT-

This is a backport of core#31163
Depends on D18253

Test Plan: ninja all check-all bitcoin-fuzzers

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Jun 14 2025, 12:55
PiRKPushed on Jun 17 2025, 09:25
Reviewer
Restricted Project
Differential Revision
D18254: scripted-diff: get rid of remaining "command" terminology in protocol.{h,cpp}
Parents
rABCa8ff8073378b: refactor: rename command -> message type in comments in the src/net* files
Branches
Unknown
Tags
Unknown