mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
doc: Fix RPC result documentation
This commit is contained in:
@@ -553,6 +553,10 @@ static RPCHelpMan getblocktemplate()
|
||||
{
|
||||
{RPCResult::Type::NUM, "rulename", "identifies the bit number as indicating acceptance and readiness for the named softfork rule"},
|
||||
}},
|
||||
{RPCResult::Type::ARR, "capabilities", "",
|
||||
{
|
||||
{RPCResult::Type::STR, "value", "A supported feature, for example 'proposal'"},
|
||||
}},
|
||||
{RPCResult::Type::NUM, "vbrequired", "bit mask of versionbits the server requires set in submissions"},
|
||||
{RPCResult::Type::STR, "previousblockhash", "The hash of current highest block"},
|
||||
{RPCResult::Type::ARR, "transactions", "contents of non-coinbase transactions that should be included in the next block",
|
||||
@@ -586,11 +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", "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, "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{
|
||||
|
||||
Reference in New Issue
Block a user