-
Notifications
You must be signed in to change notification settings - Fork 38.7k
chainparams: Explicitly use uint16 for nDefaultPort #15586
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
Conversation
Port numbers are 16-bit unsigned integers.
|
Could also update call sites? |
|
Unless you switch the constructors to use member initizlizer lists with the " Also, #8394 (comment) |
|
sorry, NACK, I don't see the point, this doesn't improve the code in any user-visible way |
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.
utACK 7c6b079. Code change itself looks good and is more clear and correct. Will happily defer to Marco/Wladimir on project management & prioritization, though, if this shouldn't be merged on those grounds.
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.
utACK 7c6b079 (agree with @ryanofsky)
|
@MarcoFalke You mean use member initializer lists for |
|
w/re the parsing comment #8394 (comment), would @laanwj and @MarcoFalke be more inclined to merge if this PR added relevant |
|
Just for some context, this was motivated by my looking at Also related: #14856 (comment) |
|
I believe it casts |
|
This is just one of many cases where a 16-bit
|
|
I'll pick this back up someday. Feel free to grab it from me. |
|
Removing up for grabs, as this is currently included in #21328. |
Port numbers are 16-bit unsigned integers.