mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-08-04 05:54:48 +02:00
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.
This commit is contained in:
parent
285fe9fb51
commit
77ec072925
@ -275,7 +275,7 @@ void RPCNotifyBlockChange(const CBlockIndex* pindex)
|
|||||||
static RPCHelpMan waitfornewblock()
|
static RPCHelpMan waitfornewblock()
|
||||||
{
|
{
|
||||||
return RPCHelpMan{"waitfornewblock",
|
return RPCHelpMan{"waitfornewblock",
|
||||||
"\nWaits for a specific new block and returns useful info about it.\n"
|
"\nWaits for any new block and returns useful info about it.\n"
|
||||||
"\nReturns the current block on timeout or exit.\n",
|
"\nReturns the current block on timeout or exit.\n",
|
||||||
{
|
{
|
||||||
{"timeout", RPCArg::Type::NUM, RPCArg::Default{0}, "Time in milliseconds to wait for a response. 0 indicates no timeout."},
|
{"timeout", RPCArg::Type::NUM, RPCArg::Default{0}, "Time in milliseconds to wait for a response. 0 indicates no timeout."},
|
||||||
|
Loading…
Reference in New Issue
Block a user