Skip to content

Commit 785f9cc

Browse files
committed
refactor: init: mark fReset const
1 parent e16f872 commit 785f9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
14921492

14931493
bool fLoaded = false;
14941494
while (!fLoaded && !ShutdownRequested()) {
1495-
bool fReset = fReindex;
1495+
const bool fReset = fReindex;
14961496
auto is_coinsview_empty = [&](CChainState* chainstate) EXCLUSIVE_LOCKS_REQUIRED(::cs_main) {
14971497
return fReset || fReindexChainState || chainstate->CoinsTip().GetBestBlock().IsNull();
14981498
};

0 commit comments

Comments
 (0)