mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-14 17:48:01 +02:00
scripted-diff: Remove unused leading newline in RPC docs
-BEGIN VERIFY SCRIPT-
perl -0777 -pi -e 's/RPCHelpMan{\s*("[^"]+"),\s*"\\n/RPCHelpMan{\n \1,\n "/g' $( git grep -l 'RPCHelpMan{' )
-END VERIFY SCRIPT-
This commit is contained in:
@@ -22,8 +22,9 @@ using node::GetTransaction;
|
||||
|
||||
static RPCHelpMan gettxoutproof()
|
||||
{
|
||||
return RPCHelpMan{"gettxoutproof",
|
||||
"\nReturns a hex-encoded proof that \"txid\" was included in a block.\n"
|
||||
return RPCHelpMan{
|
||||
"gettxoutproof",
|
||||
"Returns a hex-encoded proof that \"txid\" was included in a block.\n"
|
||||
"\nNOTE: By default this function only works sometimes. This is when there is an\n"
|
||||
"unspent output in the utxo for this transaction. To make it always work,\n"
|
||||
"you need to maintain a transaction index, using the -txindex command line option or\n"
|
||||
@@ -127,8 +128,9 @@ static RPCHelpMan gettxoutproof()
|
||||
|
||||
static RPCHelpMan verifytxoutproof()
|
||||
{
|
||||
return RPCHelpMan{"verifytxoutproof",
|
||||
"\nVerifies that a proof points to a transaction in a block, returning the transaction it commits to\n"
|
||||
return RPCHelpMan{
|
||||
"verifytxoutproof",
|
||||
"Verifies that a proof points to a transaction in a block, returning the transaction it commits to\n"
|
||||
"and throwing an RPC error if the block is not in our best chain\n",
|
||||
{
|
||||
{"proof", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The hex-encoded proof generated by gettxoutproof"},
|
||||
|
||||
Reference in New Issue
Block a user