Skip to content

Commit 77ec072

Browse files
committed
rpc: fix waitfornewblock description
The waitforblock RPC method takes a hash argument and waits for that specific block. The waitfornewblock waits for any new block. This commit fixes the documentation.
1 parent 285fe9f commit 77ec072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void RPCNotifyBlockChange(const CBlockIndex* pindex)
275275
static RPCHelpMan waitfornewblock()
276276
{
277277
return RPCHelpMan{"waitfornewblock",
278-
"\nWaits for a specific new block and returns useful info about it.\n"
278+
"\nWaits for any new block and returns useful info about it.\n"
279279
"\nReturns the current block on timeout or exit.\n",
280280
{
281281
{"timeout", RPCArg::Type::NUM, RPCArg::Default{0}, "Time in milliseconds to wait for a response. 0 indicates no timeout."},

0 commit comments

Comments
 (0)