![]() |
Bitcoin Core 31.99.0
P2P Digital Currency
|
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 |
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.
|
inline |
|
friend |
| uint32_t txindex::BlockTxPosition::block_seq {0} |
Definition at line 56 of file txindex_key.h.
| uint32_t txindex::BlockTxPosition::tx_offset_in_block {0} |
Definition at line 57 of file txindex_key.h.
|
staticconstexpr |
Definition at line 63 of file txindex_key.h.