Skip to content

Commit 73e1f7d

Browse files
committed
rpc: document optional fields for getchaintxstats result
1 parent fb67cae commit 73e1f7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rpc/blockchain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,9 +1668,9 @@ static RPCHelpMan getchaintxstats()
16681668
{RPCResult::Type::STR_HEX, "window_final_block_hash", "The hash of the final block in the window"},
16691669
{RPCResult::Type::NUM, "window_final_block_height", "The height of the final block in the window."},
16701670
{RPCResult::Type::NUM, "window_block_count", "Size of the window in number of blocks"},
1671-
{RPCResult::Type::NUM, "window_tx_count", "The number of transactions in the window. Only returned if \"window_block_count\" is > 0"},
1672-
{RPCResult::Type::NUM, "window_interval", "The elapsed time in the window in seconds. Only returned if \"window_block_count\" is > 0"},
1673-
{RPCResult::Type::NUM, "txrate", "The average rate of transactions per second in the window. Only returned if \"window_interval\" is > 0"},
1671+
{RPCResult::Type::NUM, "window_tx_count", /* optional */ true, "The number of transactions in the window. Only returned if \"window_block_count\" is > 0"},
1672+
{RPCResult::Type::NUM, "window_interval", /* optional */ true, "The elapsed time in the window in seconds. Only returned if \"window_block_count\" is > 0"},
1673+
{RPCResult::Type::NUM, "txrate", /* optional */ true, "The average rate of transactions per second in the window. Only returned if \"window_interval\" is > 0"},
16741674
}},
16751675
RPCExamples{
16761676
HelpExampleCli("getchaintxstats", "")

0 commit comments

Comments
 (0)