Skip to content

Commit

Permalink
rpc: unhide waitfor{block,newblock,blockheight}
Browse files Browse the repository at this point in the history
They are now reliable. An earlier commit dropped their
IsRPCRunning() guards so they also work in the GUI.
  • Loading branch information
Sjors committed Feb 19, 2025
1 parent e3b193f commit 246d50d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion doc/release-30635.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Updated RPCs
------------

- The waitfornewblock RPC takes an optional `current_tip` argument. (#30635)
- The waitfornewblock takes an optional `current_tip` argument. It is also no longer hidden. (#30635)
- The waitforblock and waitforblockheight RPCs are no longer hidden. (#30635)
6 changes: 3 additions & 3 deletions src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3441,9 +3441,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) {
Expand Down

0 comments on commit 246d50d

Please sign in to comment.