txindex::BlockTxPosition

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.

Synopsis

Declared in <index/txindex_key.h>

struct BlockTxPosition;

Data Members

NameDescription
block_seq Sequence number of the block that contains the transaction.
tx_offset_in_block Byte offset of the transaction from the start of the block, including the header.

Static Data Members

NameDescription
TX_OFFSET_SIZE Number of bytes used to encode tx_offset_in_block on disk (3-byte big-endian).

Friends

NameDescription
txindex::operator==Compare two positions for equality by block sequence and offset.