Repository navigation
doc: getaddressinfo[isscript] is optional - #30457
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
There was a problem hiding this comment.
code LGTM fa63ecc72045ffa771448941e1fe066f7421f640 but I think the test needs to be fixed
There was a problem hiding this comment.
unrelated: that is quite the field description 😳 Time to start thinking about deprecating isscript and iswitness, perhaps?
There was a problem hiding this comment.
yeah I was having a real hard time understanding what a lot of these fields actually mean...
There was a problem hiding this comment.
I think it means "some kind of pay to script hash", that is SH or WSH.
I guess it would be clearer to just return an enum as string, rather than a collection of boolean fields.
tdb3
left a comment
There was a problem hiding this comment.
Approach ACK
Thanks for increasing clarity in RPC.
Looks like there's a missing assert in test_getaddressinfo().
Left a nit.
There was a problem hiding this comment.
Maybe it's worth adding a line for segwit v0 as well? (e.g. witness program not 20 or 32 bytes long)?
also
nit: might increase clarity
- BECH32_VALID_UNKNOWN_WITNESS = 'bcrt1p424qxxyd0r'
+ BECH32_VALID_UNKNOWN_WITNESS_PROG = 'bcrt1p424qxxyd0r'Github-Pull: bitcoin#30457 Rebased-From: fa6390d
isscriptis unknown for unknown witness versions, so it should be marked optional in the docsFixes #30456