Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
txindex::BlockTxPosition Struct Reference

#include <txindex_key.h>

Public Member Functions

 SERIALIZE_METHODS (BlockTxPosition, obj)

Public Attributes

uint32_t block_seq {0}
uint32_t tx_offset_in_block {0}

Static Public Attributes

static constexpr uint32_t TX_OFFSET_SIZE {3}

Friends

bool operator== (const BlockTxPosition &, const BlockTxPosition &)=default

Detailed Description

The location of a transaction: the sequence number of the block that contains it and the transaction's serialized byte offset from the start of that block (including the header), so the on-disk position is simply block_data_pos + tx_offset_in_block.

Definition at line 55 of file txindex_key.h.

Member Function Documentation

◆ SERIALIZE_METHODS()

txindex::BlockTxPosition::SERIALIZE_METHODS ( BlockTxPosition ,
obj  )
inline

Definition at line 66 of file txindex_key.h.

◆ operator==

bool operator== ( const BlockTxPosition & ,
const BlockTxPosition &  )
friend

Member Data Documentation

◆ block_seq

uint32_t txindex::BlockTxPosition::block_seq {0}

Definition at line 56 of file txindex_key.h.

◆ tx_offset_in_block

uint32_t txindex::BlockTxPosition::tx_offset_in_block {0}

Definition at line 57 of file txindex_key.h.

◆ TX_OFFSET_SIZE

uint32_t txindex::BlockTxPosition::TX_OFFSET_SIZE {3}
staticconstexpr

Definition at line 63 of file txindex_key.h.


The documentation for this struct was generated from the following file: