fix test gas limit parameters

This commit is contained in:
liam.lai 2025-11-20 00:53:20 +08:00 committed by benjamin202410
parent e9c21235c8
commit 0908fac1e0

View file

@ -150,7 +150,7 @@ func TestPrepareFail(t *testing.T) {
notReadyToProposeHeader := &types.Header{ notReadyToProposeHeader := &types.Header{
ParentHash: currentBlock.Hash(), ParentHash: currentBlock.Hash(),
Number: big.NewInt(int64(901)), Number: big.NewInt(int64(901)),
GasLimit: params.TargetGasLimit, GasLimit: params.V2TestsGasLimit,
Time: big.NewInt(tstamp), Time: big.NewInt(tstamp),
Coinbase: signer, Coinbase: signer,
} }
@ -161,7 +161,7 @@ func TestPrepareFail(t *testing.T) {
notReadyToMine := &types.Header{ notReadyToMine := &types.Header{
ParentHash: currentBlock.Hash(), ParentHash: currentBlock.Hash(),
Number: big.NewInt(int64(901)), Number: big.NewInt(int64(901)),
GasLimit: params.TargetGasLimit, GasLimit: params.V2TestsGasLimit,
Time: big.NewInt(tstamp), Time: big.NewInt(tstamp),
Coinbase: signer, Coinbase: signer,
} }
@ -175,7 +175,7 @@ func TestPrepareFail(t *testing.T) {
header901WithoutCoinbase := &types.Header{ header901WithoutCoinbase := &types.Header{
ParentHash: currentBlock.Hash(), ParentHash: currentBlock.Hash(),
Number: big.NewInt(int64(901)), Number: big.NewInt(int64(901)),
GasLimit: params.TargetGasLimit, GasLimit: params.V2TestsGasLimit,
Time: big.NewInt(tstamp), Time: big.NewInt(tstamp),
} }
@ -196,7 +196,7 @@ func TestPrepareHappyPath(t *testing.T) {
header901 := &types.Header{ header901 := &types.Header{
ParentHash: currentBlock.Hash(), ParentHash: currentBlock.Hash(),
Number: big.NewInt(int64(901)), Number: big.NewInt(int64(901)),
GasLimit: params.TargetGasLimit, GasLimit: params.V2TestsGasLimit,
Time: big.NewInt(tstamp), Time: big.NewInt(tstamp),
Coinbase: signer, Coinbase: signer,
} }
@ -276,7 +276,7 @@ func TestUpdateMultipleMasterNodes(t *testing.T) {
header1800 := &types.Header{ header1800 := &types.Header{
ParentHash: parentBlock.Hash(), ParentHash: parentBlock.Hash(),
Number: big.NewInt(int64(1800)), Number: big.NewInt(int64(1800)),
GasLimit: params.TargetGasLimit, GasLimit: params.V2TestsGasLimit,
Time: big.NewInt(tstamp), Time: big.NewInt(tstamp),
Coinbase: voterAddr, Coinbase: voterAddr,
} }