Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
add coinbase to genesis block on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
didaunesp committed Feb 26, 2024
1 parent cf00ca6 commit cc63291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block {
head.SetGasLimit(g.GasLimit)
head.SetGasUsed(0)
head.SetBaseFee(new(big.Int).SetUint64(params.InitialBaseFee))
head.SetCoinbase(g.Coinbase)
if g.GasLimit == 0 {
head.SetGasLimit(params.GenesisGasLimit)
}
Expand Down
1 change: 1 addition & 0 deletions quaiclient/ethclient/ethclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func generateTestChain(db ethdb.Database, logger *log.Logger) (*core.Genesis, []
ExtraData: []byte("test genesis"),
GasLimit: 5000000,
Difficulty: big.NewInt(300000000),
Coinbase: testAddr,
}
generate := func(i int, g *core.BlockGen) {
g.OffsetTime(5)
Expand Down

0 comments on commit cc63291

Please sign in to comment.