Expand description
Reth genesis initialization utility functions.
Enums§
- Init
Storage Error - Storage initialization error type.
Constants§
- AVERAGE_
COUNT_ ACCOUNTS_ PER_ GB_ STATE_ DUMP - Approximate number of accounts per 1 GB of state dump file. One account is approximately 3.5 KB
- DEFAULT_
SOFT_ LIMIT_ BYTE_ LEN_ ACCOUNTS_ CHUNK - Default soft limit for number of bytes to read from state dump file, before inserting into database.
Functions§
- init_
from_ state_ dump - Reads account state from a
BufRead
reader and initializes it at the highest block that can be found on database. - init_
genesis - Write the genesis block if it has not already been written
- insert_
genesis_ hashes - Inserts hashes for the genesis state.
- insert_
genesis_ header - Inserts header for the genesis state.
- insert_
genesis_ history - Inserts history indices for genesis accounts and storage.
- insert_
genesis_ state - Inserts the genesis state into the database.
- insert_
history - Inserts history indices for genesis accounts and storage.
- insert_
state - Inserts state at given block into database.