mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +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:
@@ -1440,8 +1440,8 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||
node.mempool = std::make_unique<CTxMemPool>(mempool_opts);
|
||||
|
||||
const ChainstateManager::Options chainman_opts{
|
||||
chainparams,
|
||||
GetAdjustedTime,
|
||||
.chainparams = chainparams,
|
||||
.adjusted_time_callback = GetAdjustedTime,
|
||||
};
|
||||
node.chainman = std::make_unique<ChainstateManager>(chainman_opts);
|
||||
ChainstateManager& chainman = *node.chainman;
|
||||
|
||||
Reference in New Issue
Block a user