Skip to content

Commit f986984

Browse files
committed
RPC/blockchain: scan{blocks,txoutset>: Further doc improvements
1 parent 54b45e1 commit f986984

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/rpc/blockchain.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,12 +2254,13 @@ static RPCHelpMan scanblocks()
22542254
},
22552255
{
22562256
scan_result_status_none,
2257-
RPCResult{"When action=='start'", RPCResult::Type::OBJ, "", "", {
2257+
RPCResult{"When action=='start'; only returns after scan completes", RPCResult::Type::OBJ, "", "", {
22582258
{RPCResult::Type::NUM, "from_height", "The height we started the scan from"},
22592259
{RPCResult::Type::NUM, "to_height", "The height we ended the scan at"},
2260-
{RPCResult::Type::ARR, "relevant_blocks", "", {{RPCResult::Type::STR_HEX, "blockhash", "A relevant blockhash"},}},
2261-
},
2262-
},
2260+
{RPCResult::Type::ARR, "relevant_blocks", "Blocks that may have matched a scanobject.", {
2261+
{RPCResult::Type::STR_HEX, "blockhash", "A relevant blockhash"},
2262+
}},
2263+
}},
22632264
RPCResult{"when action=='status' and a scan is currently in progress", RPCResult::Type::OBJ, "", "", {
22642265
{RPCResult::Type::NUM, "progress", "Approximate percent complete"},
22652266
{RPCResult::Type::NUM, "current_height", "Height of the block currently being scanned"},

0 commit comments

Comments
 (0)