init: If bitcoind is unreachable, explain where the user can get it

Fixes: https://github.com/greenaddress/elements/issues/2
This commit is contained in:
Luke Dashjr 2019-02-23 11:32:03 +00:00 committed by Gregory Sanders
parent 680265806b
commit 0a3f589058

View file

@ -1874,6 +1874,8 @@ bool AppInitMain()
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."));
+ "\n\n"
+ 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"));
}
uiInterface.InitMessage(_("Done loading"));