mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Merge bitcoin/bitcoin#22415: Make m_mempool optional in CChainState
ceb7b35a39refactor: move UpdateTip into CChainState (James O'Beirne)4abf0779d6refactor: no mempool arg to GetCoinsCacheSizeState (James O'Beirne)46e3efd1e4refactor: move UpdateMempoolForReorg into CChainState (James O'Beirne)617661703avalidation: make CChainState::m_mempool optional (James O'Beirne) Pull request description: Make `CChainState::m_mempool` optional by making it a pointer instead of a reference. This will allow a simplification to assumeutxo semantics (see https://github.com/bitcoin/bitcoin/pull/15606#pullrequestreview-692965905) and help facilitate the `-nomempool` option. ACKs for top commit: jnewbery: ACKceb7b35a39naumenkogs: ACKceb7b35a39ryanofsky: Code review ACKceb7b35a39(just minor style and test tweaks since last review) lsilva01: Code review ACK and tested on Signet ACKceb7b35a39MarcoFalke: review ACKceb7b35a39😌 Tree-SHA512: cc445ad33439d5918cacf80a6354eea8f3d33bb7719573ed5b970fad1a0dab410bcd70be44c862b8aba1b71263b82d79876688c553e339362653dfb3d8ec81e6
This commit is contained in:
@@ -1349,7 +1349,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||
const int64_t load_block_index_start_time = GetTimeMillis();
|
||||
try {
|
||||
LOCK(cs_main);
|
||||
chainman.InitializeChainstate(*Assert(node.mempool));
|
||||
chainman.InitializeChainstate(Assert(node.mempool.get()));
|
||||
chainman.m_total_coinstip_cache = nCoinCacheUsage;
|
||||
chainman.m_total_coinsdb_cache = nCoinDBCache;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user