Index: Return early from failed coinstatsindex init

This commit is contained in:
Fabian Jahr
2021-05-24 01:24:05 +02:00
parent 1e3842385b
commit 01386bfd88

View File

@@ -344,7 +344,8 @@ bool CoinStatsIndex::Init()
}
}
if (BaseIndex::Init()) {
if (!BaseIndex::Init()) return false;
const CBlockIndex* pindex{CurrentIndex()};
if (pindex) {
@@ -370,9 +371,6 @@ bool CoinStatsIndex::Init()
return true;
}
return false;
}
// Reverse a single block as part of a reorg
bool CoinStatsIndex::ReverseBlock(const CBlock& block, const CBlockIndex* pindex)
{