mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 15:50:07 +01:00
Merge #8392: Fix several node initialization issues
9d4eb9aDo diskspace check before import thread is started (Pieter Wuille)aa59f2eAdd extra message to avoid a long 'Loading banlist' (Pieter Wuille)0fd2a33Use a signal to continue init after genesis activation (Pieter Wuille)
This commit is contained in:
@@ -4313,8 +4313,6 @@ bool InitBlockIndex(const CChainParams& chainparams)
|
||||
CBlockIndex *pindex = AddToBlockIndex(block);
|
||||
if (!ReceivedBlockTransactions(block, state, pindex, blockPos))
|
||||
return error("LoadBlockIndex(): genesis block not accepted");
|
||||
if (!ActivateBestChain(state, chainparams, &block))
|
||||
return error("LoadBlockIndex(): genesis block cannot be activated");
|
||||
// Force a chainstate write so that when we VerifyDB in a moment, it doesn't check stale data
|
||||
return FlushStateToDisk(state, FLUSH_STATE_ALWAYS);
|
||||
} catch (const std::runtime_error& e) {
|
||||
|
||||
Reference in New Issue
Block a user