diff options
author | fanquake <fanquake@gmail.com> | 2022-10-03 15:54:49 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-10-03 18:19:39 +0100 |
commit | c87d569189992c08d932fd3bf2f9aa8ef689a398 (patch) | |
tree | 0e174a5a9c847f5dbf283305fd8b301b8fc6356f /src | |
parent | 2bfc1e6aaaf8aa392f1f85050686ea6293aa817c (diff) |
refactor: move DEFAULT_COINSTATSINDEX from validation to coinstatsindex
Diffstat (limited to 'src')
-rw-r--r-- | src/index/coinstatsindex.h | 2 | ||||
-rw-r--r-- | src/validation.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/index/coinstatsindex.h b/src/index/coinstatsindex.h index fa59cb1ab1..aa0d7f9fd5 100644 --- a/src/index/coinstatsindex.h +++ b/src/index/coinstatsindex.h @@ -14,6 +14,8 @@ namespace kernel { struct CCoinsStats; } +static constexpr bool DEFAULT_COINSTATSINDEX{false}; + /** * CoinStatsIndex maintains statistics on the UTXO set. */ diff --git a/src/validation.h b/src/validation.h index 7600956db9..c42f9a1c75 100644 --- a/src/validation.h +++ b/src/validation.h @@ -65,7 +65,6 @@ static const int MAX_SCRIPTCHECK_THREADS = 15; static const int DEFAULT_SCRIPTCHECK_THREADS = 0; static const int64_t DEFAULT_MAX_TIP_AGE = 24 * 60 * 60; static const bool DEFAULT_CHECKPOINTS_ENABLED = true; -static constexpr bool DEFAULT_COINSTATSINDEX{false}; static const char* const DEFAULT_BLOCKFILTERINDEX = "0"; /** Default for -stopatheight */ static const int DEFAULT_STOPATHEIGHT = 0; |