mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-13 09:07:46 +02:00
refactor: Introduce TxDocOptions
This prepares the function to be more flexible, when more options are passed in the future.
This commit is contained in:
@@ -248,7 +248,7 @@ static RPCHelpMan getrawtransaction()
|
||||
{RPCResult::Type::NUM, "time", /*optional=*/true, "Same as \"blocktime\""},
|
||||
{RPCResult::Type::STR_HEX, "hex", "The serialized, hex-encoded data for 'txid'"},
|
||||
},
|
||||
DecodeTxDoc(/*txid_field_doc=*/"The transaction id (same as provided)", /*wallet=*/false)),
|
||||
TxDoc({.txid_field_doc="The transaction id (same as provided)"})),
|
||||
},
|
||||
RPCResult{"for verbosity = 2",
|
||||
RPCResult::Type::OBJ, "", "",
|
||||
@@ -422,7 +422,7 @@ static RPCHelpMan decoderawtransaction()
|
||||
},
|
||||
RPCResult{
|
||||
RPCResult::Type::OBJ, "", "",
|
||||
DecodeTxDoc(/*txid_field_doc=*/"The transaction id", /*wallet=*/false),
|
||||
TxDoc(),
|
||||
},
|
||||
RPCExamples{
|
||||
HelpExampleCli("decoderawtransaction", "\"hexstring\"")
|
||||
|
||||
Reference in New Issue
Block a user