diff options
author | James O'Beirne <james.obeirne@pm.me> | 2021-04-21 20:18:04 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2021-04-21 20:18:04 -0400 |
commit | 785f9cc46a43661c63a5ec56a9e82f4ce9d42f44 (patch) | |
tree | 1020fce2a55ded8cb365775819f58fbda2924b0a /src | |
parent | e16f8720dca2de1040478968c9f3ca07644a04b7 (diff) |
refactor: init: mark fReset const
Diffstat (limited to 'src')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); }; |