From 77ec072925a6d558b3c6b075becbed44727c5989 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Mon, 8 Jul 2024 18:37:39 +0200 Subject: [PATCH] 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. --- src/rpc/blockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index a9cea44779d..6445fb29267 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -275,7 +275,7 @@ void RPCNotifyBlockChange(const CBlockIndex* pindex) static 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", { {"timeout", RPCArg::Type::NUM, RPCArg::Default{0}, "Time in milliseconds to wait for a response. 0 indicates no timeout."},