rpc: unhide waitfor{block,newblock,blockheight}

They are now reliable. An earlier commit dropped their
IsRPCRunning() guards so they also work in the GUI.
This commit is contained in:
Sjors Provoost 2025-02-19 13:39:41 +01:00
parent 0786b7509a
commit c6e2c31c55
No known key found for this signature in database
GPG key ID: 57FF9BDBCC301009
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,5 @@
Updated RPCs
------------
- The waitfornewblock RPC takes an optional `current_tip` argument. (#30635)
- The waitfornewblock now takes an optional `current_tip` argument. It is also no longer hidden. (#30635)
- The waitforblock and waitforblockheight RPCs are no longer hidden. (#30635)

View file

@ -3437,9 +3437,9 @@ void RegisterBlockchainRPCCommands(CRPCTable& t)
{"blockchain", &getchainstates},
{"hidden", &invalidateblock},
{"hidden", &reconsiderblock},
{"hidden", &waitfornewblock},
{"hidden", &waitforblock},
{"hidden", &waitforblockheight},
{"blockchain", &waitfornewblock},
{"blockchain", &waitforblock},
{"blockchain", &waitforblockheight},
{"hidden", &syncwithvalidationinterfacequeue},
};
for (const auto& c : commands) {