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

Go to the source code of this file.

Classes

struct  CDiskTxPos
 
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< unsigned char, uint256 > &begin_key, const std::pair< unsigned char, uint256 > &end_key)
 

Variables

constexpr char DB_BEST_BLOCK = 'B'
 
constexpr char DB_TXINDEX = 't'
 
constexpr char 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< unsigned char, uint256 > &  begin_key,
const std::pair< unsigned char, uint256 > &  end_key 
)
static

Definition at line 91 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 char DB_BEST_BLOCK = 'B'

Definition at line 14 of file txindex.cpp.

◆ DB_TXINDEX

constexpr char DB_TXINDEX = 't'

Definition at line 15 of file txindex.cpp.

◆ DB_TXINDEX_BLOCK

constexpr char DB_TXINDEX_BLOCK = 'T'

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.