diff --git a/src/init.cpp b/src/init.cpp index 73dcb170b1020..dbd2f4c8d5ab8 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1724,7 +1724,9 @@ bool AppInitMain() } } - LoadTierTwo(chain_active_height, load_cache_files); + if (!LoadTierTwo(chain_active_height, load_cache_files)) { + return false; // error informed inside the function + } RegisterTierTwoValidationInterface(); // set the mode of budget voting for this node diff --git a/src/tiertwo/init.cpp b/src/tiertwo/init.cpp index 68da9af0f5276..76f1ca13b3532 100644 --- a/src/tiertwo/init.cpp +++ b/src/tiertwo/init.cpp @@ -162,12 +162,12 @@ bool LoadTierTwo(int chain_active_height, bool load_cache_files) CFlatDB metadb(MN_META_CACHE_FILENAME, MN_META_CACHE_FILE_ID); if (load_cache_files) { if (!metadb.Load(g_mmetaman)) { - return UIError(strprintf(_("Failed to load masternode metadata cache from: %s"), metadb.GetDbPath().string())); + LogPrintf("Failed to load masternode metadata cache from: %s", metadb.GetDbPath().string()); } } else { CMasternodeMetaMan mmetamanTmp; if (!metadb.Dump(mmetamanTmp)) { - return UIError(strprintf(_("Failed to clear masternode metadata cache at: %s"), metadb.GetDbPath().string())); + LogPrintf("Failed to clear masternode metadata cache at: %s", metadb.GetDbPath().string()); } }