mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Retry bitcoind RPC connection upon warmup error code return
This commit is contained in:
parent
5c73580718
commit
15dadcd970
2 changed files with 31 additions and 17 deletions
|
|
@ -1667,6 +1667,8 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||
CScheduler::Function f2 = boost::bind(&BitcoindRPCCheck, false);
|
||||
scheduler.scheduleEvery(f2, 120);
|
||||
|
||||
uiInterface.InitMessage(_("Awaiting bitcoind RPC warmup"));
|
||||
|
||||
if (!BitcoindRPCCheck(true)) { //Initial check, fail immediately
|
||||
return InitError(_("ERROR: liquid-daemon is set to verify pegins but cannot get valid response from bitcoind. Please check debug.log for more information."));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue