-
Notifications
You must be signed in to change notification settings - Fork 36.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: net/p2p:rename command*/Command/* to message*/Message* #24143
WIP: net/p2p:rename command*/Command/* to message*/Message* #24143
Conversation
After reviewing PR #24141 MESSAGE_SIZE better suggests the usage and scope of this variable. |
696f7d4
to
a0b6c0b
Compare
a0b6c0b
to
1bcf1f0
Compare
1bcf1f0
to
cdc7db7
Compare
bccebe2
to
ec85970
Compare
62160ef
to
58cc189
Compare
5c410a0
to
2711a02
Compare
-BEGIN VERIFY SCRIPT- test gsed && SED=$(which gsed) && export SED || SED=$(which sed) export SRC=src function s { git grep -l "$1" $SRC | xargs $SED -i "s/$1/$2/g"; } function doit1 { s 'COMMAND_SIZE' 'MESSAGE_SIZE' s 'command name' 'message name' s 'pchCommand' 'pchMessage' s 'pszCommand' 'pszMessage' s 'IsCommandValid' 'IsMessageValid' } function doit2 { s 'GetCommand' 'GetMessage' } export SRC=src && doit1 export SRC=src/net.h && doit1 export SRC=src/net.cpp && doit1 export SRC=src/protocol.h && doit1 export SRC=src/protocol.cpp && doit1 export SRC=src/test/fuzz/protocol.cpp && doit1 export SRC=src/test/fuzz/protocol.cpp && doit2 export SRC=src/test/fuzz/process_messages.cpp && doit1 export SRC=src/test/fuzz/process_messages.cpp && doit2 -END VERIFY SCRIPT-
2711a02
to
34a1d3b
Compare
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, 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. |
I do think "Message" is a better fit than "Command" conceptually. A P2P network doesn't have commands. |
🐙 This pull request conflicts with the target branch and needs rebase. Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft". |
-BEGIN VERIFY SCRIPT-
SED=$(which gsed)
export SED
echo $SED
export SRC=src
function s { git grep -l "$1" $SRC | xargs $SED -i "s/$1/$2/g"; }
function doit1 {
s 'COMMAND_SIZE' 'MESSAGE_SIZE'
s 'command name' 'message name'
s 'pchCommand' 'pchMessage'
s 'pszCommand' 'pszMessage'
}
function doit2 {
s 'GetCommand' 'GetMessage'
}
export SRC=src && doit1
export SRC=src/net.h && doit1
export SRC=src/net.cpp && doit1
export SRC=src/protocol.h && doit1
export SRC=src/protocol.cpp && doit1
export SRC=src/test/fuzz/protocol.cpp && doit1
export SRC=src/test/fuzz/protocol.cpp && doit2
export SRC=src/test/fuzz/process_messages.cpp && doit1
export SRC=src/test/fuzz/process_messages.cpp && doit2
-END VERIFY SCRIPT-