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

Name

Description

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

Name

Description

TX_OFFSET_SIZE

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

Friends

Name

Description

txindex::operator==

Compare two positions for equality by block sequence and offset.

Created with MrDocs