Skip to content

Commit

Permalink
Update constant for block gas limit
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Sep 20, 2024
1 parent 78467d5 commit 72b27dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/encode_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
errs "github.com/onflow/flow-evm-gateway/models/errors"
)

const blockGasLimit uint64 = 15_000_000
const blockGasLimit uint64 = 120_000_000

// encodeTxFromArgs will create a transaction from the given arguments.
// The resulting unsigned transaction is only supposed to be used through
Expand Down
3 changes: 2 additions & 1 deletion tests/web3js/eth_non_interactive_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ it('get block', async () => {
'0x0000000000000000000000000000000000000000000000000000000000000000'
)
assert.equal(block.size, 3995n)
assert.equal(block.gasLimit, 120000000n)
assert.equal(block.miner, '0x0000000000000000000000030000000000000000')
assert.equal(
block.sha3Uncles,
Expand Down Expand Up @@ -379,7 +380,7 @@ it('get fee history', async () => {
oldestBlock: 1n,
reward: [['0x96'], ['0x96']], // gas price is 150 during testing
baseFeePerGas: [0n, 0n],
gasUsedRatio: [0, 0.04964366666666667]
gasUsedRatio: [0, 0.006205458333333334]
}
)
})

0 comments on commit 72b27dd

Please sign in to comment.