mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
fix test gas limit parameters
This commit is contained in:
parent
e9c21235c8
commit
0908fac1e0
1 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue