diff --git a/src/index/blockfilterindex.h b/src/index/blockfilterindex.h --- a/src/index/blockfilterindex.h +++ b/src/index/blockfilterindex.h @@ -11,6 +11,8 @@ #include #include +static const char *const DEFAULT_BLOCKFILTERINDEX = "0"; + /** Interval between compact filter checkpoints. See BIP 157. */ static constexpr int CFCHECKPT_INTERVAL = 1000; diff --git a/src/index/coinstatsindex.h b/src/index/coinstatsindex.h --- a/src/index/coinstatsindex.h +++ b/src/index/coinstatsindex.h @@ -13,6 +13,8 @@ struct Amount; +static constexpr bool DEFAULT_COINSTATSINDEX{false}; + /** * CoinStatsIndex maintains statistics on the UTXO set. */ diff --git a/src/index/txindex.h b/src/index/txindex.h --- a/src/index/txindex.h +++ b/src/index/txindex.h @@ -12,6 +12,8 @@ struct BlockHash; struct TxId; +static constexpr bool DEFAULT_TXINDEX{false}; + /** * TxIndex is used to look up transactions included in the blockchain by ID. * The index is written to a LevelDB database and records the filesystem diff --git a/src/node/caches.cpp b/src/node/caches.cpp --- a/src/node/caches.cpp +++ b/src/node/caches.cpp @@ -4,9 +4,9 @@ #include +#include #include #include -#include namespace node { CacheSizes CalculateCacheSizes(const ArgsManager &args, size_t n_indexes) { diff --git a/src/validation.h b/src/validation.h --- a/src/validation.h +++ b/src/validation.h @@ -83,9 +83,6 @@ 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 const bool DEFAULT_TXINDEX = false; -static constexpr bool DEFAULT_COINSTATSINDEX{false}; -static const char *const DEFAULT_BLOCKFILTERINDEX = "0"; static const bool DEFAULT_PEERBLOOMFILTERS = true;