fix(primitives): write withdrawal hash at genesis (#1654)

This commit is contained in:
Dan Cline
2023-03-08 11:30:50 -05:00
committed by GitHub
parent 161de9aadf
commit 9e1c341e16
4 changed files with 57 additions and 6 deletions

View File

@ -42,15 +42,16 @@ pub struct InitCommand {
impl InitCommand {
/// Execute the `init` command
pub async fn execute(&self) -> eyre::Result<()> {
info!(target: "reth::cli", "reth import starting");
info!(target: "reth::cli", "reth init starting");
info!(target: "reth::cli", path = %self.db, "Opening database");
let db = Arc::new(init_db(&self.db)?);
info!(target: "reth::cli", "Database opened");
info!(target: "reth::cli", "Writing genesis block");
init_genesis(db, self.chain.clone())?;
let hash = init_genesis(db, self.chain.clone())?;
info!(target: "reth::cli", hash = ?hash, "Genesis block written");
Ok(())
}
}