diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-27 08:26:54 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-27 08:26:57 +0200 |
commit | f8f55522c4697b77b1f739a2ed0c483396d62154 (patch) | |
tree | d92de576d25be608a41334168d0687857eccba3b /src | |
parent | 683dda2a70e7a210996fa34be23bd0c563971ba9 (diff) | |
parent | 785f9cc46a43661c63a5ec56a9e82f4ce9d42f44 (diff) | |
download | bitcoin-f8f55522c4697b77b1f739a2ed0c483396d62154.tar.xz |
Merge bitcoin/bitcoin#21746: refactor: init: mark fReset const
785f9cc46a43661c63a5ec56a9e82f4ce9d42f44 refactor: init: mark fReset const (James O'Beirne)
Pull request description:
Small thing, but hey - it doesn't change.
ACKs for top commit:
theStack:
Code-review ACK 785f9cc46a43661c63a5ec56a9e82f4ce9d42f44
Tree-SHA512: 3cb8d7037f517162f6315d561accc4932b0f1e340162c3283871433f2e355d57b3740c9d2e953ce33fbfa3b277c8437f91955fb70331b3fe9c8e6a8589dc2b49
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 bb5b144802..8aa2e59135 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1370,7 +1370,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(); }; |