You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
Is your feature request related to a problem? Please describe.
Currently if a transaction gets submitted with too low gas price, it can potentially get stuck in the mempool. It would be nice if we could work around that by automatically bumping its fee according to some policy which is defined by the caller.
Describe the solution you'd like
A similar implementation to PendingTransaction which takes the re-submission policy as a constructor argument. Its Future implementation would then try to get the receipt, and if the receipt returns an error, instead of directly queuing up the receipt check, it'd first re-submit the transaction with a new gas price, according to the policy.
Note: h/t @stonecoldpat the tx hash will change for every bump so you have to adjust it after each submission
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently if a transaction gets submitted with too low gas price, it can potentially get stuck in the mempool. It would be nice if we could work around that by automatically bumping its fee according to some policy which is defined by the caller.
Describe the solution you'd like
A similar implementation to PendingTransaction which takes the re-submission policy as a constructor argument. Its
Future
implementation would then try to get the receipt, and if the receipt returns an error, instead of directly queuing up the receipt check, it'd first re-submit the transaction with a new gas price, according to the policy.Note: h/t @stonecoldpat the tx hash will change for every bump so you have to adjust it after each submission
The text was updated successfully, but these errors were encountered: