aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-12-23 17:38:09 -0500
committerCarl Dong <contact@carldong.me>2021-12-23 17:38:09 -0500
commite3544c864e3e56867de25b8db7b012d58b378050 (patch)
tree1b0995db6b359edd5054fbe812b7f19d03887d77 /src/init.cpp
parent3401630417d994b53ff3a89db2ea759ab1ec6f0f (diff)
downloadbitcoin-e3544c864e3e56867de25b8db7b012d58b378050.tar.xz
init: Use clang-tidy named args syntax
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/init.cpp b/src/init.cpp
index d14a0baef1..5a3134f9d6 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1415,10 +1415,10 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
cache_sizes.block_tree_db,
cache_sizes.coins_db,
cache_sizes.coins,
- false,
- false,
- ShutdownRequested,
- []() {
+ /*block_tree_db_in_memory=*/false,
+ /*coins_db_in_memory=*/false,
+ /*shutdown_requested=*/ShutdownRequested,
+ /*coins_error_cb=*/[]() {
uiInterface.ThreadSafeMessageBox(
_("Error reading from database, shutting down."),
"", CClientUIInterface::MSG_ERROR);
@@ -1476,7 +1476,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
chainparams.GetConsensus(),
check_blocks,
args.GetIntArg("-checklevel", DEFAULT_CHECKLEVEL),
- static_cast<int64_t(*)()>(GetTime));
+ /*get_unix_time_seconds=*/static_cast<int64_t(*)()>(GetTime));
} catch (const std::exception& e) {
LogPrintf("%s\n", e.what());
maybe_verify_error = ChainstateLoadVerifyError::ERROR_GENERIC_FAILURE;