Skip to content

accounts, internal: return an error if no suitable estimated gas found#15477

Merged
karalabe merged 2 commits into
ethereum:masterfrom
rjl493456442:improve_gas_estimation
Nov 14, 2017
Merged

accounts, internal: return an error if no suitable estimated gas found#15477
karalabe merged 2 commits into
ethereum:masterfrom
rjl493456442:improve_gas_estimation

Conversation

@rjl493456442
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

Almost :) The original hi limit may be valid, so you need do veirify it before assuming it will fail.

E.g. I call estimate gas with the exact amount required (21000 for a plain tx).

Comment thread accounts/abi/bind/backends/simulated.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please make 'Gas' is the message lowercase. All errors should be lowercase to allow composing them (the error above this is the exception as it refers to a public type)

@rjl493456442 rjl493456442 force-pushed the improve_gas_estimation branch from 1cfeb15 to e6a9ff9 Compare November 14, 2017 10:24
Copy link
Copy Markdown
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

I've pushed a tiny polish commit to make the code look a bit nicer :) Will squash and merge when green.

@karalabe karalabe added this to the 1.7.3 milestone Nov 14, 2017
@karalabe karalabe merged commit 984c25a into ethereum:master Nov 14, 2017
@3esmit
Copy link
Copy Markdown

3esmit commented Nov 21, 2017

Fixes #15421 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants