Bitcoin Core 30.99.0
P2P Digital Currency
Classes | Functions | Variables
txospenderindex.cpp File Reference
#include <index/txospenderindex.h>
#include <common/args.h>
#include <crypto/siphash.h>
#include <dbwrapper.h>
#include <flatfile.h>
#include <index/base.h>
#include <index/disktxpos.h>
#include <interfaces/chain.h>
#include <logging.h>
#include <node/blockstorage.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <random.h>
#include <serialize.h>
#include <streams.h>
#include <tinyformat.h>
#include <uint256.h>
#include <util/fs.h>
#include <validation.h>
#include <cstdio>
#include <exception>
#include <ios>
#include <span>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for txospenderindex.cpp:

Go to the source code of this file.

Classes

struct  DBKey
 

Functions

static uint64_t CreateKeyPrefix (std::pair< uint64_t, uint64_t > siphash_key, const COutPoint &vout)
 
static DBKey CreateKey (std::pair< uint64_t, uint64_t > siphash_key, const COutPoint &vout, const CDiskTxPos &pos)
 
static std::vector< std::pair< COutPoint, CDiskTxPos > > BuildSpenderPositions (const interfaces::BlockInfo &block)
 

Variables

constexpr uint8_t DB_TXOSPENDERINDEX {'s'}
 
std::unique_ptr< TxoSpenderIndexg_txospenderindex
 The global txo spender index. May be null. More...
 

Function Documentation

◆ BuildSpenderPositions()

static std::vector< std::pair< COutPoint, CDiskTxPos > > BuildSpenderPositions ( const interfaces::BlockInfo block)
static

Definition at line 111 of file txospenderindex.cpp.

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

◆ CreateKey()

static DBKey CreateKey ( std::pair< uint64_t, uint64_t >  siphash_key,
const COutPoint vout,
const CDiskTxPos pos 
)
static

Definition at line 85 of file txospenderindex.cpp.

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

◆ CreateKeyPrefix()

static uint64_t CreateKeyPrefix ( std::pair< uint64_t, uint64_t >  siphash_key,
const COutPoint vout 
)
static

Definition at line 80 of file txospenderindex.cpp.

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

Variable Documentation

◆ DB_TXOSPENDERINDEX

constexpr uint8_t DB_TXOSPENDERINDEX {'s'}
constexpr

Definition at line 41 of file txospenderindex.cpp.

◆ g_txospenderindex

std::unique_ptr<TxoSpenderIndex> g_txospenderindex

The global txo spender index. May be null.

Definition at line 43 of file txospenderindex.cpp.