mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
Index: Return early from failed coinstatsindex init
This commit is contained in:
parent
1e3842385b
commit
01386bfd88
1 changed files with 19 additions and 21 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue