mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
rpc: Correct RPCHelpMan for fundrawtransaction's input_weights field
input_weights is incorrectly documented as a fixed length JSON array, but it is actually a JSON array of JSON objects - this commit changes input_weights to use RPCArg::Type::OBJ
This commit is contained in:
parent
d8bdee0fc8
commit
927b8d4e0c
1 changed files with 11 additions and 7 deletions
|
@ -763,13 +763,17 @@ RPCHelpMan fundrawtransaction()
|
|||
},
|
||||
{"input_weights", RPCArg::Type::ARR, RPCArg::Optional::OMITTED_NAMED_ARG, "Inputs and their corresponding weights",
|
||||
{
|
||||
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id"},
|
||||
{"vout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The output index"},
|
||||
{"weight", RPCArg::Type::NUM, RPCArg::Optional::NO, "The maximum weight for this input, "
|
||||
"including the weight of the outpoint and sequence number. "
|
||||
"Note that serialized signature sizes are not guaranteed to be consistent, "
|
||||
"so the maximum DER signatures size of 73 bytes should be used when considering ECDSA signatures."
|
||||
"Remember to convert serialized sizes to weight units when necessary."},
|
||||
{"", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED, "",
|
||||
{
|
||||
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id"},
|
||||
{"vout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The output index"},
|
||||
{"weight", RPCArg::Type::NUM, RPCArg::Optional::NO, "The maximum weight for this input, "
|
||||
"including the weight of the outpoint and sequence number. "
|
||||
"Note that serialized signature sizes are not guaranteed to be consistent, "
|
||||
"so the maximum DER signatures size of 73 bytes should be used when considering ECDSA signatures."
|
||||
"Remember to convert serialized sizes to weight units when necessary."},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue