Bitcoin ABC  0.22.12
P2P Digital Currency
Classes | Functions | Variables
txindex.cpp File Reference
#include <index/txindex.h>
#include <blockdb.h>
#include <chain.h>
#include <node/ui_interface.h>
#include <shutdown.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.


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


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


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< uint8_t, TxId > &  begin_key,
const std::pair< uint8_t, TxId > &  end_key 

Definition at line 95 of file txindex.cpp.

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

Variable Documentation


constexpr char DB_BEST_BLOCK = 'B'

Definition at line 17 of file txindex.cpp.


constexpr char DB_TXINDEX = 't'

Definition at line 18 of file txindex.cpp.


constexpr char DB_TXINDEX_BLOCK = 'T'

Definition at line 19 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 21 of file txindex.cpp.