mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Fix mainchain RPC warmup message
This commit is contained in:
parent
4ae7d7abf1
commit
c0e7cf64eb
2 changed files with 3 additions and 1 deletions
|
|
@ -1877,6 +1877,9 @@ bool AppInitMain(InitInterfaces& interfaces)
|
||||||
SetRPCWarmupFinished();
|
SetRPCWarmupFinished();
|
||||||
|
|
||||||
// ELEMENTS:
|
// ELEMENTS:
|
||||||
|
if (gArgs.GetBoolArg("-validatepegin", Params().GetConsensus().has_parent_chain)) {
|
||||||
|
uiInterface.InitMessage(_("Awaiting mainchain RPC warmup"));
|
||||||
|
}
|
||||||
if (!MainchainRPCCheck(true)) { //Initial check only
|
if (!MainchainRPCCheck(true)) { //Initial check only
|
||||||
const std::string err_msg = "ERROR: elements is set to verify pegins but cannot get valid response from the mainchain daemon. Please check debug.log for more information.\n\nIf you haven't setup a bitcoind please get the latest stable version from https://bitcoincore.org/en/download/ or if you do not need to validate pegins set in your elements configuration validatepegin=0";
|
const std::string err_msg = "ERROR: elements is set to verify pegins but cannot get valid response from the mainchain daemon. Please check debug.log for more information.\n\nIf you haven't setup a bitcoind please get the latest stable version from https://bitcoincore.org/en/download/ or if you do not need to validate pegins set in your elements configuration validatepegin=0";
|
||||||
// We fail immediately if this node has RPC server enabled
|
// We fail immediately if this node has RPC server enabled
|
||||||
|
|
|
||||||
|
|
@ -5288,7 +5288,6 @@ bool MainchainRPCCheck(const bool init)
|
||||||
|
|
||||||
// Next, check for working and valid rpc
|
// Next, check for working and valid rpc
|
||||||
if (gArgs.GetBoolArg("-validatepegin", Params().GetConsensus().has_parent_chain)) {
|
if (gArgs.GetBoolArg("-validatepegin", Params().GetConsensus().has_parent_chain)) {
|
||||||
uiInterface.InitMessage(_("Awaiting mainchain RPC warmup"));
|
|
||||||
// During init try until a non-RPC_IN_WARMUP result
|
// During init try until a non-RPC_IN_WARMUP result
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue