mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Move mempool nullptr Assert out of LoadChainstate
This commit is contained in:
@@ -1421,7 +1421,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
|||||||
const int64_t load_block_index_start_time = GetTimeMillis();
|
const int64_t load_block_index_start_time = GetTimeMillis();
|
||||||
auto rv = LoadChainstate(fReset,
|
auto rv = LoadChainstate(fReset,
|
||||||
chainman,
|
chainman,
|
||||||
node.mempool.get(),
|
Assert(node.mempool.get()),
|
||||||
fPruneMode,
|
fPruneMode,
|
||||||
chainparams,
|
chainparams,
|
||||||
fReindexChainState,
|
fReindexChainState,
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
|
|||||||
do {
|
do {
|
||||||
try {
|
try {
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
chainman.InitializeChainstate(Assert(mempool));
|
chainman.InitializeChainstate(mempool);
|
||||||
chainman.m_total_coinstip_cache = nCoinCacheUsage;
|
chainman.m_total_coinstip_cache = nCoinCacheUsage;
|
||||||
chainman.m_total_coinsdb_cache = nCoinDBCache;
|
chainman.m_total_coinsdb_cache = nCoinDBCache;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user