From 785f9cc46a43661c63a5ec56a9e82f4ce9d42f44 Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Wed, 21 Apr 2021 20:18:04 -0400 Subject: refactor: init: mark fReset const --- src/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 741e70f748..6af933d466 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1492,7 +1492,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) bool fLoaded = false; while (!fLoaded && !ShutdownRequested()) { - bool fReset = fReindex; + const bool fReset = fReindex; auto is_coinsview_empty = [&](CChainState* chainstate) EXCLUSIVE_LOCKS_REQUIRED(::cs_main) { return fReset || fReindexChainState || chainstate->CoinsTip().GetBestBlock().IsNull(); }; -- cgit v1.2.3