refactor: move DEFAULT_TXINDEX from validation to txindex

This commit is contained in:
fanquake committed 2022-10-03 18:19:39 +01:00
1 parent b92b12e8f3
commit 2bfc1e6aaa
3 files changed
+3 -2

No files matched your search

+2
View File
@@ -7,6 +7,8 @@
#include <index/base.h>
static constexpr bool DEFAULT_TXINDEX{false};
/**
* TxIndex is used to look up transactions included in the blockchain by hash.
* The index is written to a LevelDB database and records the filesystem
+1 -1
View File
@@ -4,9 +4,9 @@
#include <node/caches.h>
#include <index/txindex.h>
#include <txdb.h>
#include <util/system.h>
#include <validation.h>
namespace node {
CacheSizes CalculateCacheSizes(const ArgsManager& args, size_t n_indexes)
-1
View File
@@ -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 const bool DEFAULT_TXINDEX = false;
static constexpr bool DEFAULT_COINSTATSINDEX{false};
static const char* const DEFAULT_BLOCKFILTERINDEX = "0";
/** Default for -stopatheight */