mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02: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:
parent
3837700267
commit
ce8b0f971b
4 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue