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
The existing retry logic also doesn't handle nonces well. Contractkit will set the nonce to take pending transactions into account, see here. We should be explicitly setting the nonce to the "latest" value for the transaction count: https://eth.wiki/json-rpc/API#eth_gettransactioncount
Current Behavior
We retry a failed transaction with 10% higher gas price, but the nonce handling is insufficient and we don't explicitly consider timeouts or dropped txs
The text was updated successfully, but these errors were encountered:
Expected Behavior
When waiting for a tx that has been submitted to the network to be included in a block, if either of the 2 conditions occurs:
Then:
Resubmit the transaction with at least a 10% higher gas price. Consider something higher than 10% as well. We can piggyback off the existing retry logic here: https://github.com/celo-org/celo-oracle/blob/main/src/reporters/transaction_manager/send_with_retries.ts#L20. This retry logic should be modified to consider the gas price minimum at each retry.
The existing retry logic also doesn't handle nonces well. Contractkit will set the nonce to take pending transactions into account, see here. We should be explicitly setting the nonce to the "latest" value for the transaction count: https://eth.wiki/json-rpc/API#eth_gettransactioncount
Current Behavior
We retry a failed transaction with 10% higher gas price, but the nonce handling is insufficient and we don't explicitly consider timeouts or dropped txs
The text was updated successfully, but these errors were encountered: