Module e2hs

Module e2hs 

Source
Expand description

The format for storing history chain data snapshots.

Filename:

<config-name>-<era-number>-<short-hash>.e2hs

Type Definitions:

e2hs := Version | block-tuple* | other-entries* | BlockIndex
block-tuple :=  CompressedHeader | CompressedBody | CompressedReceipts
-----
Version            = { type: 0x6532, data: nil }
CompressedHWP      = { type: 0x0301, data: snappyFramed(ssz(header_with_proof)) }
CompressedBody     = { type: 0x0400, data: snappyFramed(rlp(body)) }
CompressedReceipts = { type: 0x0500, data: snappyFramed(rlp(receipts)) }
BlockIndex         = { type: 0x6632, data: block-index }

E2HS files must each contain a contiguous sequence of 8192 blocks. Full file spec can be found here: https://github.com/eth-clients/e2store-format-specs/blob/main/formats/e2hs.md

Structs§

BlockTuple
E2HSBlockIndexEntry
E2HSMemory
E2HSWriter
The E2HS streaming writer.
HeaderWithProofEntry

Constants§

BLOCK_TUPLE_COUNT