Bitcoin Core  21.99.0
P2P Digital Currency
Classes | Functions | Variables
txindex.cpp File Reference
#include <index/disktxpos.h>
#include <index/txindex.h>
#include <node/blockstorage.h>
#include <node/ui_interface.h>
#include <shutdown.h>
#include <util/system.h>
#include <util/translation.h>
#include <validation.h>
Include dependency graph for txindex.cpp:

Go to the source code of this file.

Classes

class  TxIndex::DB
 Access to the txindex database (indexes/txindex/) More...
 

Functions

static void WriteTxIndexMigrationBatches (CDBWrapper &newdb, CDBWrapper &olddb, CDBBatch &batch_newdb, CDBBatch &batch_olddb, const std::pair< uint8_t, uint256 > &begin_key, const std::pair< uint8_t, uint256 > &end_key)
 

Variables

constexpr uint8_t DB_BEST_BLOCK {'B'}
 
constexpr uint8_t DB_TXINDEX {'t'}
 
constexpr uint8_t DB_TXINDEX_BLOCK {'T'}
 
std::unique_ptr< TxIndexg_txindex
 The global transaction index, used in GetTransaction. May be null. More...
 

Function Documentation

◆ WriteTxIndexMigrationBatches()

static void WriteTxIndexMigrationBatches ( CDBWrapper newdb,
CDBWrapper olddb,
CDBBatch batch_newdb,
CDBBatch batch_olddb,
const std::pair< uint8_t, uint256 > &  begin_key,
const std::pair< uint8_t, uint256 > &  end_key 
)
static

Definition at line 61 of file txindex.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DB_BEST_BLOCK

constexpr uint8_t DB_BEST_BLOCK {'B'}
constexpr

Definition at line 14 of file txindex.cpp.

◆ DB_TXINDEX

constexpr uint8_t DB_TXINDEX {'t'}
constexpr

Definition at line 15 of file txindex.cpp.

◆ DB_TXINDEX_BLOCK

constexpr uint8_t DB_TXINDEX_BLOCK {'T'}
constexpr

Definition at line 16 of file txindex.cpp.

◆ g_txindex

std::unique_ptr<TxIndex> g_txindex

The global transaction index, used in GetTransaction. May be null.

Definition at line 18 of file txindex.cpp.