0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

refactor: move DEFAULT_TXINDEX from validation to txindex

This commit is contained in:
fanquake 2022-10-03 15:53:22 +01:00
parent b92b12e8f3
commit 2bfc1e6aaa
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1
3 changed files with 3 additions and 2 deletions

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

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)

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 */