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

Problem: hard-coded transaction gas #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yrashk
Copy link
Contributor

@yrashk yrashk commented Jun 13, 2018

This makes it very to make a mistake when configuring
the bridge and have failing transactions as a result.

Solution: use eth.estimateGas call for every transaction

Configuration values for gas will be only used if they
are set and non-zero.

If estimateGas fails, the transaction will be thrown out
as it will be assumed that it is failing and therefore we
shouldn't waste resources on it.

This makes it very to make a mistake when configuring
the bridge and have failing transactions as a result.

Solution: use `eth.estimateGas` call for every transaction

Configuration values for `gas` will be only used if they
are set and non-zero.

If `estimateGas` fails, the transaction will be thrown out
as it will be assumed that it is failing and therefore we
shouldn't waste resources on it.
@ghost ghost assigned yrashk Jun 13, 2018
@ghost ghost added the in progress label Jun 13, 2018
@yrashk
Copy link
Contributor Author

yrashk commented Jun 14, 2018

What would be important to do before merging this is to research rpc error codes that indicate that we should NOT throw out the transaction. Otherwise we have a chance of throwing out transactions that are legitimate but something went wrong at the node.

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

Successfully merging this pull request may close these issues.

2 participants