mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-12 16:45:40 +01:00
scripted-diff: Use named args in RPC docs
-BEGIN VERIFY SCRIPT- sed -i -e 's|, /\* optional \*/ true,|, /*optional=*/true,|g' $( git grep -l ', /\* optional \*/ true,' ) -END VERIFY SCRIPT-
This commit is contained in:
@@ -412,8 +412,8 @@ static RPCHelpMan getmininginfo()
|
||||
RPCResult::Type::OBJ, "", "",
|
||||
{
|
||||
{RPCResult::Type::NUM, "blocks", "The current block"},
|
||||
{RPCResult::Type::NUM, "currentblockweight", /* optional */ true, "The block weight of the last assembled block (only present if a block was ever assembled)"},
|
||||
{RPCResult::Type::NUM, "currentblocktx", /* optional */ true, "The number of block transactions of the last assembled block (only present if a block was ever assembled)"},
|
||||
{RPCResult::Type::NUM, "currentblockweight", /*optional=*/true, "The block weight of the last assembled block (only present if a block was ever assembled)"},
|
||||
{RPCResult::Type::NUM, "currentblocktx", /*optional=*/true, "The number of block transactions of the last assembled block (only present if a block was ever assembled)"},
|
||||
{RPCResult::Type::NUM, "difficulty", "The current difficulty"},
|
||||
{RPCResult::Type::NUM, "networkhashps", "The network hashes per second"},
|
||||
{RPCResult::Type::NUM, "pooledtx", "The size of the mempool"},
|
||||
@@ -590,12 +590,12 @@ static RPCHelpMan getblocktemplate()
|
||||
{RPCResult::Type::STR_HEX, "noncerange", "A range of valid nonces"},
|
||||
{RPCResult::Type::NUM, "sigoplimit", "limit of sigops in blocks"},
|
||||
{RPCResult::Type::NUM, "sizelimit", "limit of block size"},
|
||||
{RPCResult::Type::NUM, "weightlimit", /* optional */ true, "limit of block weight"},
|
||||
{RPCResult::Type::NUM, "weightlimit", /*optional=*/true, "limit of block weight"},
|
||||
{RPCResult::Type::NUM_TIME, "curtime", "current timestamp in " + UNIX_EPOCH_TIME},
|
||||
{RPCResult::Type::STR, "bits", "compressed target of next block"},
|
||||
{RPCResult::Type::NUM, "height", "The height of the next block"},
|
||||
{RPCResult::Type::STR_HEX, "signet_challenge", /* optional */ true, "Only on signet"},
|
||||
{RPCResult::Type::STR_HEX, "default_witness_commitment", /* optional */ true, "a valid witness commitment for the unmodified block template"},
|
||||
{RPCResult::Type::STR_HEX, "signet_challenge", /*optional=*/true, "Only on signet"},
|
||||
{RPCResult::Type::STR_HEX, "default_witness_commitment", /*optional=*/true, "a valid witness commitment for the unmodified block template"},
|
||||
}},
|
||||
},
|
||||
RPCExamples{
|
||||
@@ -1082,8 +1082,8 @@ static RPCHelpMan estimatesmartfee()
|
||||
RPCResult{
|
||||
RPCResult::Type::OBJ, "", "",
|
||||
{
|
||||
{RPCResult::Type::NUM, "feerate", /* optional */ true, "estimate fee rate in " + CURRENCY_UNIT + "/kvB (only present if no errors were encountered)"},
|
||||
{RPCResult::Type::ARR, "errors", /* optional */ true, "Errors encountered during processing (if there are any)",
|
||||
{RPCResult::Type::NUM, "feerate", /*optional=*/true, "estimate fee rate in " + CURRENCY_UNIT + "/kvB (only present if no errors were encountered)"},
|
||||
{RPCResult::Type::ARR, "errors", /*optional=*/true, "Errors encountered during processing (if there are any)",
|
||||
{
|
||||
{RPCResult::Type::STR, "", "error"},
|
||||
}},
|
||||
@@ -1155,12 +1155,12 @@ static RPCHelpMan estimaterawfee()
|
||||
RPCResult{
|
||||
RPCResult::Type::OBJ, "", "Results are returned for any horizon which tracks blocks up to the confirmation target",
|
||||
{
|
||||
{RPCResult::Type::OBJ, "short", /* optional */ true, "estimate for short time horizon",
|
||||
{RPCResult::Type::OBJ, "short", /*optional=*/true, "estimate for short time horizon",
|
||||
{
|
||||
{RPCResult::Type::NUM, "feerate", /* optional */ true, "estimate fee rate in " + CURRENCY_UNIT + "/kvB"},
|
||||
{RPCResult::Type::NUM, "feerate", /*optional=*/true, "estimate fee rate in " + CURRENCY_UNIT + "/kvB"},
|
||||
{RPCResult::Type::NUM, "decay", "exponential decay (per block) for historical moving average of confirmation data"},
|
||||
{RPCResult::Type::NUM, "scale", "The resolution of confirmation targets at this time horizon"},
|
||||
{RPCResult::Type::OBJ, "pass", /* optional */ true, "information about the lowest range of feerates to succeed in meeting the threshold",
|
||||
{RPCResult::Type::OBJ, "pass", /*optional=*/true, "information about the lowest range of feerates to succeed in meeting the threshold",
|
||||
{
|
||||
{RPCResult::Type::NUM, "startrange", "start of feerate range"},
|
||||
{RPCResult::Type::NUM, "endrange", "end of feerate range"},
|
||||
@@ -1169,20 +1169,20 @@ static RPCHelpMan estimaterawfee()
|
||||
{RPCResult::Type::NUM, "inmempool", "current number of txs in mempool in the feerate range unconfirmed for at least target blocks"},
|
||||
{RPCResult::Type::NUM, "leftmempool", "number of txs over history horizon in the feerate range that left mempool unconfirmed after target"},
|
||||
}},
|
||||
{RPCResult::Type::OBJ, "fail", /* optional */ true, "information about the highest range of feerates to fail to meet the threshold",
|
||||
{RPCResult::Type::OBJ, "fail", /*optional=*/true, "information about the highest range of feerates to fail to meet the threshold",
|
||||
{
|
||||
{RPCResult::Type::ELISION, "", ""},
|
||||
}},
|
||||
{RPCResult::Type::ARR, "errors", /* optional */ true, "Errors encountered during processing (if there are any)",
|
||||
{RPCResult::Type::ARR, "errors", /*optional=*/true, "Errors encountered during processing (if there are any)",
|
||||
{
|
||||
{RPCResult::Type::STR, "error", ""},
|
||||
}},
|
||||
}},
|
||||
{RPCResult::Type::OBJ, "medium", /* optional */ true, "estimate for medium time horizon",
|
||||
{RPCResult::Type::OBJ, "medium", /*optional=*/true, "estimate for medium time horizon",
|
||||
{
|
||||
{RPCResult::Type::ELISION, "", ""},
|
||||
}},
|
||||
{RPCResult::Type::OBJ, "long", /* optional */ true, "estimate for long time horizon",
|
||||
{RPCResult::Type::OBJ, "long", /*optional=*/true, "estimate for long time horizon",
|
||||
{
|
||||
{RPCResult::Type::ELISION, "", ""},
|
||||
}},
|
||||
|
||||
Reference in New Issue
Block a user