-
Notifications
You must be signed in to change notification settings - Fork 38.7k
[doc] Tiny followups to new getpeerinfo connection type field #20090
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
[doc] Tiny followups to new getpeerinfo connection type field #20090
Conversation
doc/release-notes.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a generally correct statement, that could go into the RPC help instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/net.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f476fbdf84c88b7ab90aa3e9240b39806525a8b6
not sure if this was asked before, CONNECTION_TYPE_DOC is used only in src/rpc/net.cpp, why not just have it there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, good point!
history: Marco suggested extracting in #19725 (comment). I thought a benefit was to keep CONNECTION_TYPE_DOC next to ConnectionType definition for future updates, but now we don't have that regardless. I've moved into src/rpc/net.cpp and added a comment on the ConnectionType enum for future code changes.
This slightly reduces the size of the binary.
f476fbd to
41dca08
Compare
|
ACK 41dca08 |
|
Code review ACK 41dca08 |
…on type field 41dca08 [trivial] Extract connection type doc into file where it is used. (Amiti Uttarwar) 3069b56 [doc] Improve help for getpeerinfo connection_type field. (Amiti Uttarwar) Pull request description: two commits addressing small followups from bitcoin#19725 * first commit adds a clarification in the release notes that this field shouldn't be expected to be stable (suggested by sdaftuar in bitcoin#19725 (comment)) * second commit moves the `CONNECTION_TYPE_DOC` object out of the header file to reduce the size of the binary (suggested by MarcoFalke in bitcoin#19725 (comment), he tested and found a decrease of 10kB) ACKs for top commit: achow101: ACK 41dca08 laanwj: Code review ACK 41dca08 Tree-SHA512: a555df978b4341fbe05deeb40a8a655f0d3c5c1c0adcc1737fd2cf61b204a5a24a301ca0c2b5a3616554d4abf8c57074d22dbda5a50d8450bc22c57679424985
two commits addressing small followups from #19725
first commit adds a clarification in the release notes that this field shouldn't be expected to be stable (suggested by sdaftuar in [RPC] Add connection type to getpeerinfo, improve logs #19725 (comment))
second commit moves the
CONNECTION_TYPE_DOCobject out of the header file to reduce the size of the binary (suggested by MarcoFalke in [RPC] Add connection type to getpeerinfo, improve logs #19725 (comment), he tested and found a decrease of 10kB)