Skip to content

Commit f273603

Browse files
committed
init: don't error out if MN metadata db wasn't loaded properly.
the node will re-create its state all over.
1 parent e1f66de commit f273603

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tiertwo/init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ bool LoadTierTwo(int chain_active_height, bool load_cache_files)
162162
CFlatDB<CMasternodeMetaMan> metadb(MN_META_CACHE_FILENAME, MN_META_CACHE_FILE_ID);
163163
if (load_cache_files) {
164164
if (!metadb.Load(g_mmetaman)) {
165-
return UIError(strprintf(_("Failed to load masternode metadata cache from: %s"), metadb.GetDbPath().string()));
165+
LogPrintf("Failed to load masternode metadata cache from: %s", metadb.GetDbPath().string());
166166
}
167167
} else {
168168
CMasternodeMetaMan mmetamanTmp;
169169
if (!metadb.Dump(mmetamanTmp)) {
170-
return UIError(strprintf(_("Failed to clear masternode metadata cache at: %s"), metadb.GetDbPath().string()));
170+
LogPrintf("Failed to clear masternode metadata cache at: %s", metadb.GetDbPath().string());
171171
}
172172
}
173173

0 commit comments

Comments
 (0)