mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01: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:
@@ -763,13 +763,17 @@ RPCHelpMan fundrawtransaction()
|
|||||||
},
|
},
|
||||||
{"input_weights", RPCArg::Type::ARR, RPCArg::Optional::OMITTED_NAMED_ARG, "Inputs and their corresponding weights",
|
{"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"},
|
{"", RPCArg::Type::OBJ, RPCArg::Optional::OMITTED, "",
|
||||||
{"vout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The output index"},
|
{
|
||||||
{"weight", RPCArg::Type::NUM, RPCArg::Optional::NO, "The maximum weight for this input, "
|
{"txid", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The transaction id"},
|
||||||
"including the weight of the outpoint and sequence number. "
|
{"vout", RPCArg::Type::NUM, RPCArg::Optional::NO, "The output index"},
|
||||||
"Note that serialized signature sizes are not guaranteed to be consistent, "
|
{"weight", RPCArg::Type::NUM, RPCArg::Optional::NO, "The maximum weight for this input, "
|
||||||
"so the maximum DER signatures size of 73 bytes should be used when considering ECDSA signatures."
|
"including the weight of the outpoint and sequence number. "
|
||||||
"Remember to convert serialized sizes to weight units when necessary."},
|
"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."},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user