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:
parent
b92b12e8f3
commit
2bfc1e6aaa
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue