Startup RPC check, failed block queue setup

This commit is contained in:
instagibbs 2016-06-03 09:25:25 -04:00 committed by Gregory Sanders
parent bd55bf3d36
commit f7424036e9
5 changed files with 109 additions and 0 deletions

View file

@ -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