Expand description
Reth genesis initialization utility functions.
Enums§
- Database initialization error type.
Constants§
- Approximate number of accounts per 1 GB of state dump file. One account is approximately 3.5 KB
- Default soft limit for number of bytes to read from state dump file, before inserting into database.
Functions§
- Reads account state from a
BufRead
reader and initializes it at the highest block that can be found on database. - Write the genesis block if it has not already been written
- Inserts hashes for the genesis state.
- Inserts header for the genesis state.
- Inserts history indices for genesis accounts and storage.
- Inserts the genesis state into the database.
- Inserts history indices for genesis accounts and storage.
- Inserts state at given block into database.