-
Notifications
You must be signed in to change notification settings - Fork 906
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-schema: make address field in getinfo response required #5904
doc-schema: make address field in getinfo response required #5904
Conversation
To spell out the various combinations:
The only downside I can see with this is the couple of extra bytes for serializing the empty array, whereas the old code would just omit it. No big deal. |
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.
ACK 8da5c7f
I preferer this, but I do not have the big picture of the problem
But the code shows this is trivially untrue?
So, run with --offline, and you'll see no |
8da5c7f
to
2dc70b5
Compare
Right, so I updated this to add an empty address array even if |
The reason I am doing this is that If the field is optional and I have a getinfo json A with the address field empty, |
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.
ACK 2dc70b5
2dc70b5
to
297b5e4
Compare
Trivial rebase for conflict. Ack 297b5e4 |
There were cases where address it's empty, and this cases are not right if the field is considered optional. This makes it required and add the field also when `--offline` is set. Changelog-Changed: JSON-RPC: `getinfo` `address` array is always present (though may be empty)
Trivial rebase for man page checksum conflict Ack 58566cb |
297b5e4
to
58566cb
Compare
Since it is always returned even if emptythis was false, see #5904 (comment) , there are cases where address field is not returned, but since there are also cases where is returned empty the issue remains.alternative to #5902
Closes #5902
Changelog-None