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

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Apr 29, 2024
1 parent e648388 commit 7d42178
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 2 additions & 0 deletions internal/docker/nodes/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ services:
- "0.0.0.0"
- --hardfork
- cancun
- --block-gas-limit
- "200000000"

l2_execution_engine:
container_name: l2_node
Expand Down
6 changes: 0 additions & 6 deletions internal/testutils/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,3 @@ func (s *ClientTestSuite) RevertL1Snapshot(snapshotID string) {
s.Nil(s.RPCClient.L1.CallContext(context.Background(), &revertRes, "evm_revert", snapshotID))
s.True(revertRes)
}

func (s *ClientTestSuite) SetL1BlockGasLimit(gasLimit uint64) {
var success bool
s.Nil(s.RPCClient.L1.CallContext(context.Background(), &success, "evm_setBlockGasLimit", gasLimit))
s.True(success)
}
6 changes: 1 addition & 5 deletions proposer/proposer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,6 @@ func (s *ProposerTestSuite) TestProposeTxLists() {
cfg.ExtraData,
)

// set gas limit
gasLimit := uint64(200000000)
s.SetL1BlockGasLimit(gasLimit)

emptyTxListBytes, err := rlp.EncodeToBytes(types.Transactions{})
s.Nil(err)
txListsBytes := [][]byte{emptyTxListBytes}
Expand All @@ -334,7 +330,7 @@ func (s *ProposerTestSuite) TestProposeTxLists() {

// trigger the error
candidate.Blobs = []*eth.Blob{}
candidate.GasLimit = gasLimit / 20
candidate.GasLimit = 2000000

txCandidates[i] = *candidate
}
Expand Down

0 comments on commit 7d42178

Please sign in to comment.