#18533#issue-594592488:
a message is not a command, but simply a message of some type
Continuation of bitcoin/bitcoin#18533 and bitcoin/bitcoin#18937.
-BEGIN VERIFY SCRIPT-
sed -i 's/std::string m_command;/std::string m_type;/g' ./src/net.h
sed -i 's/* command and size./* type and size./g' ./src/net.h
sed -i 's/msg.m_command/msg.m_type/g' ./src/net.cpp ./src/net_processing.cpp ./src/test/fuzz/p2p_transport_serialization.cpp
-END VERIFY SCRIPT-
Concept and code-review ACK 224d87855ec38cc15866d9673e1b19942a82c1cd
There are still quite a few instances of the confusing “command” terminology for message types around, as $ git grep -i command ./src/net*
shows. Happy to review further changes in this direction (either in this PR or a follow-up).
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Code Review ACK 224d87855ec38cc15866d9673e1b19942a82c1cd
Going commit wise:
a message is not a command, but simply a message of some type
746@@ -747,7 +747,7 @@ CNetMessage V1TransportDeserializer::GetMessage(const std::chrono::microseconds
747 CNetMessage msg(std::move(vRecv));
748
749 // store command string, time, and sizes
I think there are a few comments which could be updated.
0git grep --ignore-case command ./src/net*