Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update constant for block gas limit #564

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
}
)
})
Loading