![]() |
Bitcoin Core 31.99.0
P2P Digital Currency
|
Classes | |
| struct | BlockHashKey |
| Key for looking up the sequence number assigned to the block with the given hash. More... | |
| struct | BlockSeqKey |
| Key for looking up the hash of the block with the given sequence number. More... | |
| struct | 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. More... | |
| struct | DBKey |
Typedefs | |
| using | TxHashKeyPrefix = uint64_t |
Functions | |
| TxHashKeyPrefix | CreateKeyPrefix (const SipHasher13UJ &hasher, const Txid &txid) |
| std::pair< uint8_t, uint256 > | LegacyTxKey (const Txid &txid) |
| Key of a legacy (pre-hashing) txindex row: the full txid under the 't' prefix. More... | |
Variables | |
| constexpr uint8_t | DB_TXINDEX_HASHED {'x'} |
| constexpr uint8_t | DB_BLOCK_SEQ {'s'} |
| constexpr uint8_t | DB_BLOCK_HASH {'h'} |
| const std::string | DB_NEXT_BLOCK_SEQ {"next_block_seq"} |
| const std::string | DB_TXID_HASH_SALT {"txid_hash_salt"} |
| const std::string | DB_BEST_BLOCK_V2 {"best_block_v2"} |
| constexpr uint8_t | DB_TXINDEX {'t'} |
| Prefix of a legacy (pre-hashing) txindex row. More... | |
| constexpr std::array< std::byte, 0 > | EMPTY_VALUE {} |
| Empty value of a hashed txindex row, whose position is encoded in its key. More... | |
| constexpr uint32_t | BLOCK_HEADER_SIZE {80} |
| Serialized size of a block header, the offset of the first byte after it. More... | |
| constexpr int | HASH_PREFIX_SIZE {5} |
| using txindex::TxHashKeyPrefix = typedef uint64_t |
Definition at line 100 of file txindex_key.h.
|
inline |
Definition at line 102 of file txindex_key.h.
Key of a legacy (pre-hashing) txindex row: the full txid under the 't' prefix.
Definition at line 121 of file txindex_key.h.
|
constexpr |
Serialized size of a block header, the offset of the first byte after it.
Definition at line 48 of file txindex_key.h.
|
inline |
Definition at line 40 of file txindex_key.h.
|
constexpr |
Definition at line 37 of file txindex_key.h.
|
constexpr |
Definition at line 36 of file txindex_key.h.
|
inline |
Definition at line 38 of file txindex_key.h.
|
inline |
Definition at line 39 of file txindex_key.h.
|
constexpr |
Prefix of a legacy (pre-hashing) txindex row.
Definition at line 42 of file txindex_key.h.
|
constexpr |
Definition at line 35 of file txindex_key.h.
|
inlineconstexpr |
Empty value of a hashed txindex row, whose position is encoded in its key.
Definition at line 45 of file txindex_key.h.
|
constexpr |
Definition at line 99 of file txindex_key.h.