Skip to content

Commit c0e0e0a

Browse files
committed
Merge #818: Place the mainchain RPC warmup message in a better place
c5cb714 Place the mainchain RPC warmup message in a better place (Steven Roose) Pull request description: Now it also shows with `-validatepegin=0`. Tree-SHA512: 7e04ab1b5b853fc6896245cb735e1fbfeb2c94950afdf4e2a40ad1c1d59ed06f578c1f491686caa88fa0432a02078ad4c04f338500b34812503e06570e988d52
2 parents 1715404 + c5cb714 commit c0e0e0a

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)