Index: Return early from failed coinstatsindex init
This commit is contained in:
1 file changed
+2
-4
@@ -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) {
|
||||||
@@ -370,9 +371,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
|
||||||
bool CoinStatsIndex::ReverseBlock(const CBlock& block, const CBlockIndex* pindex)
|
bool CoinStatsIndex::ReverseBlock(const CBlock& block, const CBlockIndex* pindex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user