-
Notifications
You must be signed in to change notification settings - Fork 37.7k
rpc: Improve RPC help by explicitly mentioning output types #24339
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
…pc/util.{h|cpp}`
cc @laanwj given he said #23320 (comment). |
Concept ACK Edit: diff: --- /tmp/getblock.1 2022-02-15 13:33:21.436527762 +0100
+++ /tmp/getblock.2 2022-02-15 13:48:38.017920912 +0100
@@ -66,7 +66,7 @@
"asm" : "str", (string) The asm
"hex" : "str", (string) The hex
"address" : "str", (string, optional) The Bitcoin address (only if a well-defined address exists)
- "type" : "str" (string) The type, eg 'pubkeyhash'
+ "type" : "str" (string) The type (nonstandard, pubkey, pubkeyhash, scripthash, multisig, nulldata, witness_v0_scripthash, witness_v0_keyhash, witness_v1_taproot, witness_unknown)
}
}
}, |
Concept ACK Seems like an improvement to display all the output types in the RPC help rather than just the |
Does it make sense to you to use Is the output OK? Or are possibly any output types that you would NOT show? |
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 78d9227
Concept ACK |
78d9227
to
c9ca3e8
Compare
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 c9ca3e8
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.
Approach ACK c9ca3e8
c9ca3e8
to
c821ab8
Compare
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.
re-ACK c821ab8
This PR attempts to replicate
bitcoin/src/rpc/rawtransaction.cpp
Line 547 in 0ccf9b2
I created this PR as a follow-up to the idea mentioned here #23320 (comment) (resolved).