Skip to content

Commit 2bfc1e6

Browse files
committed
refactor: move DEFAULT_TXINDEX from validation to txindex
1 parent b92b12e commit 2bfc1e6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/index/txindex.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#include <index/base.h>
99

10+
static constexpr bool DEFAULT_TXINDEX{false};
11+
1012
/**
1113
* TxIndex is used to look up transactions included in the blockchain by hash.
1214
* The index is written to a LevelDB database and records the filesystem

src/node/caches.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
#include <node/caches.h>
66

7+
#include <index/txindex.h>
78
#include <txdb.h>
89
#include <util/system.h>
9-
#include <validation.h>
1010

1111
namespace node {
1212
CacheSizes CalculateCacheSizes(const ArgsManager& args, size_t n_indexes)

src/validation.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ static const int MAX_SCRIPTCHECK_THREADS = 15;
6565
static const int DEFAULT_SCRIPTCHECK_THREADS = 0;
6666
static const int64_t DEFAULT_MAX_TIP_AGE = 24 * 60 * 60;
6767
static const bool DEFAULT_CHECKPOINTS_ENABLED = true;
68-
static const bool DEFAULT_TXINDEX = false;
6968
static constexpr bool DEFAULT_COINSTATSINDEX{false};
7069
static const char* const DEFAULT_BLOCKFILTERINDEX = "0";
7170
/** Default for -stopatheight */

0 commit comments

Comments
 (0)