mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge branch 'master' into catchup
This commit is contained in:
commit
dc900eb7d7
10 changed files with 137 additions and 58 deletions
11
src/init.cpp
11
src/init.cpp
|
|
@ -1879,11 +1879,6 @@ bool AppInitMain(InitInterfaces& interfaces)
|
|||
SetRPCWarmupFinished();
|
||||
|
||||
// ELEMENTS:
|
||||
CScheduler::Function f2 = boost::bind(&MainchainRPCCheck, false);
|
||||
unsigned int check_rpc_every = gArgs.GetArg("-recheckpeginblockinterval", 120);
|
||||
if (check_rpc_every) {
|
||||
scheduler.scheduleEvery(f2, check_rpc_every);
|
||||
}
|
||||
uiInterface.InitMessage(_("Awaiting mainchain RPC warmup"));
|
||||
if (!MainchainRPCCheck(true)) { //Initial check, fail immediately
|
||||
return InitError(_("ERROR: elementsd is set to verify pegins but cannot get valid response from the mainchain daemon. Please check debug.log for more information.")
|
||||
|
|
@ -1891,6 +1886,12 @@ bool AppInitMain(InitInterfaces& interfaces)
|
|||
+ strprintf(_("If you haven't setup a %s please get the latest stable version from %s or if you do not need to validate pegins set in your elements configuration %s"), "bitcoind", "https://bitcoincore.org/en/download/", "validatepegin=0"));
|
||||
}
|
||||
|
||||
CScheduler::Function f2 = boost::bind(&MainchainRPCCheck, false);
|
||||
unsigned int check_rpc_every = gArgs.GetArg("-recheckpeginblockinterval", 120);
|
||||
if (check_rpc_every) {
|
||||
scheduler.scheduleEvery(f2, check_rpc_every);
|
||||
}
|
||||
|
||||
uiInterface.InitMessage(_("Done loading"));
|
||||
|
||||
for (const auto& client : interfaces.chain_clients) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue