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.
Declared in <index/txindex_key.h>
struct BlockTxPosition;
| 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. |
| Name | Description |
|---|---|
TX_OFFSET_SIZE | Number of bytes used to encode tx_offset_in_block on disk (3-byte big-endian). |
| Name | Description |
|---|---|
txindex::operator== | Compare two positions for equality by block sequence and offset. |