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

fix: eth_call and eth_estimate gas limits (mostly) #449

Merged
merged 3 commits into from
Jul 15, 2019

Conversation

davidmurdoch
Copy link
Member

This fix raises the default gas limit for eth_call and eth_estimateGas to be much much higher.

It also adds an a new option callGasLimit which will be the default value for tx and block gas limits for calls and estimates.

Ideally we'd allow for Infinity. But the VM doesn't allow for that.

We could go higher with this limit if we change the gas est algo to handle BigInt-sized numbers, but currently it doesn't so Number.MAX_SAFE_INTEGER it is!

Copy link
Contributor

@nicholasjpaterno nicholasjpaterno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! It should be really easy to update the gas algo for big ints too! I'll open an issue for that if there isn't one already!

@davidmurdoch davidmurdoch merged commit f606f47 into develop Jul 15, 2019
@davidmurdoch davidmurdoch deleted the fix/eth_call-estimateGas-limits branch September 20, 2019 23:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants