Expand description
Initialize state from a binary dump file.
This command loads TIP20 storage slots from a binary file and applies them
to the genesis state. The binary format is produced by tempo-xtask generate-state-bloat.
Structsยง
- Init
From Binary Dump - Initialize state from a binary dump file.
Constantsยง
- ETL_
FILE_ ๐SIZE - ETL collector file size (200 MiB per temp file before spilling a new one).
- HASH_
WORKER_ ๐QUEUE_ DEPTH - Bounded channel depth for the hashing worker thread.
- MAGIC ๐
- Magic bytes for the state bloat binary format (8 bytes)
- VERSION ๐
- Expected format version
- WORKER_
CHUNK_ ๐SIZE - Maximum number of storage entries to hash per worker batch.
Functionsยง
- decode_
raw_ ๐storage_ key - load_
etl_ ๐to_ cursor - Iterate a sorted ETL collector, deduplicate consecutive entries with the same key
(keeping the last value), and call
appendfor each unique entry. - load_
storage_ ๐etl - Iterate a raw storage ETL collector, deduplicate consecutive entries with the
same
(address, slot)key, and callwritefor each unique entry. - log_
collection_ ๐progress - Log collection progress every 5 seconds and on the final entry.
- raw_
storage_ ๐key - Composite ETL key for unhashed storage, sorted by address then slot.
- write_
storage_ ๐changesets - write_
storage_ ๐history