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.


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


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 

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


constexpr uint8_t DB_BEST_BLOCK {'B'}

Definition at line 14 of file txindex.cpp.


constexpr uint8_t DB_TXINDEX {'t'}

Definition at line 15 of file txindex.cpp.


constexpr uint8_t 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.