Skip to content

Commit e3544c8

Browse files
committed
init: Use clang-tidy named args syntax
1 parent 3401630 commit e3544c8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/init.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,10 +1415,10 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
14151415
cache_sizes.block_tree_db,
14161416
cache_sizes.coins_db,
14171417
cache_sizes.coins,
1418-
false,
1419-
false,
1420-
ShutdownRequested,
1421-
[]() {
1418+
/*block_tree_db_in_memory=*/false,
1419+
/*coins_db_in_memory=*/false,
1420+
/*shutdown_requested=*/ShutdownRequested,
1421+
/*coins_error_cb=*/[]() {
14221422
uiInterface.ThreadSafeMessageBox(
14231423
_("Error reading from database, shutting down."),
14241424
"", CClientUIInterface::MSG_ERROR);
@@ -1476,7 +1476,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
14761476
chainparams.GetConsensus(),
14771477
check_blocks,
14781478
args.GetIntArg("-checklevel", DEFAULT_CHECKLEVEL),
1479-
static_cast<int64_t(*)()>(GetTime));
1479+
/*get_unix_time_seconds=*/static_cast<int64_t(*)()>(GetTime));
14801480
} catch (const std::exception& e) {
14811481
LogPrintf("%s\n", e.what());
14821482
maybe_verify_error = ChainstateLoadVerifyError::ERROR_GENERIC_FAILURE;

src/test/util/setup_common.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const
191191
m_cache_sizes.block_tree_db,
192192
m_cache_sizes.coins_db,
193193
m_cache_sizes.coins,
194-
true,
195-
true);
194+
/*block_tree_db_in_memory=*/true,
195+
/*coins_db_in_memory=*/true);
196196
assert(!maybe_load_error.has_value());
197197

198198
auto maybe_verify_error = VerifyLoadedChainstate(
@@ -202,7 +202,7 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const
202202
chainparams.GetConsensus(),
203203
m_args.GetIntArg("-checkblocks", DEFAULT_CHECKBLOCKS),
204204
m_args.GetIntArg("-checklevel", DEFAULT_CHECKLEVEL),
205-
static_cast<int64_t(*)()>(GetTime));
205+
/*get_unix_time_seconds=*/static_cast<int64_t(*)()>(GetTime));
206206
assert(!maybe_verify_error.has_value());
207207

208208
BlockValidationState state;

0 commit comments

Comments
 (0)