Bitcoin Core 31.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
txindex::BlockTxPosition Struct Reference

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. More...

#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.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ 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

constexpr 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: