Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Retry gas estimation #198

Merged
merged 1 commit into from
Oct 9, 2018
Merged

Conversation

spalladino
Copy link
Contributor

If a transaction to be sent fails, the error we'll actually get is
an 'always failing transaction' on the estimateGas we sent first.
However, we want to retry some transactions, as they may depend on
a previous tx being mined, which may have not propagated yet.
To handle these scenarios, we add 3 retries to gas estimation,
separated by a small sleep interval.

Fixes #192

If a transaction to be sent fails, the error we'll actually get is
an 'always failing transaction' on the estimateGas we sent first.
However, we want to retry some transactions, as they may depend on
a previous tx being mined, which may have not propagated yet.
To handle these scenarios, we add 3 retries to gas estimation,
separated by a small sleep interval.

Fixes #192
@spalladino spalladino force-pushed the feature/retries-on-estimate-gas-#192 branch from ee28d4f to 4e216c7 Compare October 9, 2018 12:04
@facuspagnuolo facuspagnuolo merged commit b9cd01d into master Oct 9, 2018
@facuspagnuolo facuspagnuolo deleted the feature/retries-on-estimate-gas-#192 branch October 22, 2018 18:07
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.

2 participants