Page MenuHomePhabricator

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

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

Details

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