Index: Return early from failed coinstatsindex init

This commit is contained in:
Fabian Jahr committed 2021-06-03 01:51:11 +02:00
1 parent 1e3842385b
commit 01386bfd88
1 file changed
+2 -4
+2 -4
View File
@@ -344,7 +344,8 @@ bool CoinStatsIndex::Init()
} }
} }
if (BaseIndex::Init()) { if (!BaseIndex::Init()) return false;
const CBlockIndex* pindex{CurrentIndex()}; const CBlockIndex* pindex{CurrentIndex()};
if (pindex) { if (pindex) {
@@ -368,9 +369,6 @@ bool CoinStatsIndex::Init()
} }
return true; return true;
}
return false;
} }
// Reverse a single block as part of a reorg // Reverse a single block as part of a reorg