diff options
author | Carl Dong <contact@carldong.me> | 2022-07-13 14:16:15 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-07-14 08:35:23 -0400 |
commit | ce8b0f971b94e68db1e902dbd20dd99dcf9bcb0a (patch) | |
tree | 6361f1ff8b0256cc2d94b7b1f73c02fae491788a /src/bitcoin-chainstate.cpp | |
parent | 38377002671d038aadb01e1521ea95c97838cedc (diff) |
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.
Diffstat (limited to 'src/bitcoin-chainstate.cpp')
-rw-r--r-- | src/bitcoin-chainstate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitcoin-chainstate.cpp b/src/bitcoin-chainstate.cpp index 1817aa1a53..d53e917aba 100644 --- a/src/bitcoin-chainstate.cpp +++ b/src/bitcoin-chainstate.cpp @@ -78,8 +78,8 @@ int main(int argc, char* argv[]) // SETUP: Chainstate const ChainstateManager::Options chainman_opts{ - chainparams, - static_cast<int64_t(*)()>(GetTime), + .chainparams = chainparams, + .adjusted_time_callback = static_cast<int64_t (*)()>(GetTime), }; ChainstateManager chainman{chainman_opts}; |