You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin/bitcoin#32514: scripted-diff: Remove unused leading newline in RPC docs
fa1f10a doc: Fix minor typos in rpc help (MarcoFalke)
fae840e rpc: Reject beginning newline in RPC docs (MarcoFalke)
fa414ed scripted-diff: Remove unused leading newline in RPC docs (MarcoFalke)
Pull request description:
It is harmless, but newlines in the beginning read a bit odd ("nReturns"). So just require them to not be present.
The diff is large, but a trivial scripted-diff.
ACKs for top commit:
fanquake:
ACK fa1f10a
w0xlt:
ACK bitcoin/bitcoin@fa1f10a
Tree-SHA512: 5d2f9632f42ec1c02814d050f223941f436e5b0df426d7d6eb93fdd0ff118d57185af07b271dd73af63735dd17231125826c0c9ce0aad36bc8829c5b050a628c
"\nIf verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.\n"
561
+
return RPCHelpMan{
562
+
"getblockheader",
563
+
"If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.\n"
555
564
"If verbose is true, returns an Object with information about blockheader <hash>.\n",
556
565
{
557
566
{"blockhash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash"},
@@ -715,8 +724,9 @@ const RPCResult getblock_vin{
715
724
716
725
static RPCHelpMan getblock()
717
726
{
718
-
return RPCHelpMan{"getblock",
719
-
"\nIf verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\n"
727
+
return RPCHelpMan{
728
+
"getblock",
729
+
"If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\n"
720
730
"If verbosity is 1, returns an Object with information about block <hash>.\n"
721
731
"If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.\n"
722
732
"If verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).\n",
"\nReturns statistics about the unspent transaction output set.\n"
967
+
return RPCHelpMan{
968
+
"gettxoutsetinfo",
969
+
"Returns statistics about the unspent transaction output set.\n"
959
970
"Note this call may take some time if you are not using coinstatsindex.\n",
960
971
{
961
972
{"hash_type", RPCArg::Type::STR, RPCArg::Default{"hash_serialized_3"}, "Which UTXO set hash should be calculated. Options: 'hash_serialized_3' (the legacy algorithm), 'muhash', 'none'."},
"\nReturns result of mempool acceptance tests indicating if raw transaction(s) (serialized, hex-encoded) would be accepted by mempool.\n"
112
+
return RPCHelpMan{
113
+
"testmempoolaccept",
114
+
"Returns result of mempool acceptance tests indicating if raw transaction(s) (serialized, hex-encoded) would be accepted by mempool.\n"
113
115
"\nIf multiple transactions are passed in, parents must come before children and package policies apply: the transactions cannot conflict with any mempool transactions or each other.\n"
114
116
"\nIf one transaction fails, other transactions may not be fully validated (the 'allowed' key will be blank).\n"
115
117
"\nThe maximum number of transactions allowed is " + ToString(MAX_PACKAGE_COUNT) + ".\n"
"\nEXPERIMENTAL warning: this call may be changed in future releases.\n",
860
868
{
861
869
{"verbosity", RPCArg::Type::NUM, RPCArg::Default{0}, "0 for an array of txids (may contain duplicates), 1 for an array of objects with tx details, and 2 for details from (1) and tx hex",
0 commit comments