ArgsManager
(there it makes much more sense), so the scripted-diff lists for this replacement the files explicitly, rather than using $(git grep -l ...)
.
ArgsManager
(there it makes much more sense), so the scripted-diff lists for this replacement the files explicitly, rather than using $(git grep -l ...)
.
-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
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-
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31163.
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
tACK 4120c7543ee32efed7396d7153411ecbbd588ad3
Successful make and functional tests. I tested the script using the script checker script without any issues; ended up installing gnu sed and gnu grep on my MAC.
0➜ bitcoin git:(202410-remaining_command_terminology) ✗ test/lint/commit-script-check.sh 2a52718d734cf65aaeeb18f627547e5bca3483f4..4120c7543ee32efed7396d7153411ecbbd588ad3
1Running script for: 4120c7543ee32efed7396d7153411ecbbd588ad3
2sed -i s/COMMAND_SIZE/MESSAGE_TYPE_SIZE/g $(git grep -l COMMAND_SIZE)
3sed -i s/pszCommand/msg_type/g $(git grep -l pszCommand)
4sed -i s/pchCommand/m_msg_type/g $(git grep -l pchCommand)
5sed -i s/GetCommand/GetMessageType/g ./src/net.cpp ./src/protocol.cpp ./src/protocol.h ./src/test/fuzz/protocol.cpp
6sed -i s/IsCommandValid/IsMessageTypeValid/g $(git grep -l IsCommandValid)
7sed -i "s/command/message type/g" ./src/protocol.h ./src/protocol.cpp
8OK
Makes sense to change the remaining ones as well for consistency.
review ACK 4120c7543ee32efed7396d7153411ecbbd588ad3 🛒
Signature:
0untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
1RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
2trusted comment: review ACK 4120c7543ee32efed7396d7153411ecbbd588ad3 🛒
37vjp2D1kDy9UmqzutdkVvYk7liAUtZbaDL2JgIy7nV9sObdoKSAsgJMdXvpiR4SvnlI0HXlpm/4U+vZih4+JAw==
Code review ACK 4120c7543ee32efed7396d7153411ecbbd588ad3
Did some light checks to see if anything was missed and reviewed changes.