1
0
Fork 0
forked from forks/go-ethereum

cmd/geth: fix compatErr in initGenesis (#31746)

This commit is contained in:
ericxtheodore 2025-04-30 18:37:48 +08:00 committed by GitHub
parent 7612872761
commit 701df4baad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -251,7 +251,7 @@ func initGenesis(ctx *cli.Context) error {
utils.Fatalf("Failed to write genesis block: %v", err)
}
if compatErr != nil {
utils.Fatalf("Failed to write chain config: %v", err)
utils.Fatalf("Failed to write chain config: %v", compatErr)
}
log.Info("Successfully wrote genesis state", "database", "chaindata", "hash", hash)