Skip to content

Commit c6e2c31

Browse files
committed
rpc: unhide waitfor{block,newblock,blockheight}
They are now reliable. An earlier commit dropped their IsRPCRunning() guards so they also work in the GUI.
1 parent 0786b75 commit c6e2c31

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/release-30635.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Updated RPCs
22
------------
33

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

src/rpc/blockchain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3437,9 +3437,9 @@ void RegisterBlockchainRPCCommands(CRPCTable& t)
34373437
{"blockchain", &getchainstates},
34383438
{"hidden", &invalidateblock},
34393439
{"hidden", &reconsiderblock},
3440-
{"hidden", &waitfornewblock},
3441-
{"hidden", &waitforblock},
3442-
{"hidden", &waitforblockheight},
3440+
{"blockchain", &waitfornewblock},
3441+
{"blockchain", &waitforblock},
3442+
{"blockchain", &waitforblockheight},
34433443
{"hidden", &syncwithvalidationinterfacequeue},
34443444
};
34453445
for (const auto& c : commands) {

0 commit comments

Comments
 (0)