Skip to content

Commit c5cb714

Browse files
committed
Place the mainchain RPC warmup message in a better place
1 parent e5ab941 commit c5cb714

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/init.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,6 @@ bool AppInitMain(InitInterfaces& interfaces)
18841884
SetRPCWarmupFinished();
18851885

18861886
// ELEMENTS:
1887-
uiInterface.InitMessage(_("Awaiting mainchain RPC warmup"));
18881887
if (!MainchainRPCCheck(true)) { //Initial check only
18891888
const std::string err_msg = "ERROR: elements is set to verify pegins but cannot get valid response from the mainchain daemon. Please check debug.log for more information.\n\nIf you haven't setup a bitcoind please get the latest stable version from https://bitcoincore.org/en/download/ or if you do not need to validate pegins set in your elements configuration validatepegin=0";
18901889
// We fail immediately if this node has RPC server enabled

src/validation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5294,6 +5294,7 @@ bool MainchainRPCCheck(const bool init)
52945294

52955295
// Next, check for working and valid rpc
52965296
if (gArgs.GetBoolArg("-validatepegin", Params().GetConsensus().has_parent_chain)) {
5297+
uiInterface.InitMessage(_("Awaiting mainchain RPC warmup"));
52975298
// During init try until a non-RPC_IN_WARMUP result
52985299
while (true) {
52995300
try {

0 commit comments

Comments
 (0)