chain passing

This commit is contained in:
Patrick O'Grady
2022-03-16 14:29:47 -07:00
parent 602c915270
commit 4d991457fb
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ func TestChain(t *testing.T) {
Nonce: 0,
Number: 0,
ExtraData: hexutil.MustDecode("0x00"),
GasLimit: 100000000,
GasLimit: chainConfig.FeeConfig.GasLimit.Uint64(),
Difficulty: big.NewInt(0),
Alloc: core.GenesisAlloc{genKey.Address: {Balance: genBalance}},
}
+2 -1
View File
@@ -63,6 +63,7 @@ func NewDefaultChain(t *testing.T) (*ETHChain, chan core.NewTxPoolHeadEvent, <-c
ConstantinopleBlock: big.NewInt(0),
PetersburgBlock: big.NewInt(0),
IstanbulBlock: big.NewInt(0),
FeeConfig: params.DefaultFeeConfig,
}
config.Genesis = &core.Genesis{
@@ -70,7 +71,7 @@ func NewDefaultChain(t *testing.T) (*ETHChain, chan core.NewTxPoolHeadEvent, <-c
Nonce: 0,
Number: 0,
ExtraData: hexutil.MustDecode("0x00"),
GasLimit: 100000000,
GasLimit: chainConfig.FeeConfig.GasLimit.Uint64(),
Difficulty: big.NewInt(0),
Alloc: core.GenesisAlloc{fundedKey.Address: core.GenesisAccount{Balance: initialBalance}},
}