mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-20 11:52:44 +02:00
Index: Return early from failed coinstatsindex init
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user