mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Use designated initializers for ChainstateManager::Options
This wasn't available at the time when ChainstateManager::Options was introduced but is helpful to be explicit and ensure correctness.
This commit is contained in:
@@ -183,8 +183,8 @@ ChainTestingSetup::ChainTestingSetup(const std::string& chainName, const std::ve
|
||||
m_cache_sizes = CalculateCacheSizes(m_args);
|
||||
|
||||
const ChainstateManager::Options chainman_opts{
|
||||
chainparams,
|
||||
GetAdjustedTime,
|
||||
.chainparams = chainparams,
|
||||
.adjusted_time_callback = GetAdjustedTime,
|
||||
};
|
||||
m_node.chainman = std::make_unique<ChainstateManager>(chainman_opts);
|
||||
m_node.chainman->m_blockman.m_block_tree_db = std::make_unique<CBlockTreeDB>(m_cache_sizes.block_tree_db, true);
|
||||
|
||||
Reference in New Issue
Block a user