Skip to content

Commit

Permalink
attempted fix for ethereum/go-ethereum#17443
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Jun 8, 2024
1 parent 2a952ba commit 24f5511
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ethergo/backends/geth/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func makeEthConfig(address common.Address, config *params.ChainConfig) *ethconfi
ethConfig := ethconfig.Defaults
ethConfig.NetworkId = config.ChainID.Uint64()
ethConfig.Genesis = core.DeveloperGenesisBlock(10000000, address)
ethConfig.Genesis.ExtraData = append([]byte{}, make([]byte, 32)...) // 32 bytes of vanity
ethConfig.Genesis.ExtraData = append(ethConfig.Genesis.ExtraData, address.Bytes()...) // Signer address
ethConfig.Genesis.ExtraData = append(ethConfig.Genesis.ExtraData, make([]byte, 65)...) // 65 bytes of signature

ethConfig.Genesis.Config = config
ethConfig.Miner.Etherbase = address
ethConfig.SyncMode = downloader.FullSync
Expand Down

0 comments on commit 24f5511

Please sign in to comment.