TxIndex::TxIndex

Constructs the index, which becomes available to be queried.

Synopsis

Declared in <index/txindex.h>

explicit
TxIndex(
    std::unique_ptr<interfaces::Chain> chain,
    size_t n_cache_size,
    bool f_memory = false,
    bool f_wipe = false);

Parameters

NameDescription
chainInterface used to query the blockchain.
n_cache_sizeSize of the database cache, in bytes.
f_memoryKeep the database in memory instead of on disk.
f_wipeErase any existing database before opening.