mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Startup RPC check, failed block queue setup
This commit is contained in:
parent
bd55bf3d36
commit
f7424036e9
5 changed files with 109 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include "addrman.h"
|
||||
#include "amount.h"
|
||||
#include "callrpc.h"
|
||||
#include "chain.h"
|
||||
#include "chainparams.h"
|
||||
#include "checkpoints.h"
|
||||
|
|
@ -1658,6 +1659,14 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||
// ********************************************************* Step 12: finished
|
||||
|
||||
SetRPCWarmupFinished();
|
||||
|
||||
CScheduler::Function f2 = boost::bind(&BitcoindRPCCheck, false);
|
||||
scheduler.scheduleEvery(f2, 120);
|
||||
|
||||
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."));
|
||||
}
|
||||
|
||||
uiInterface.InitMessage(_("Done loading"));
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue