Repository navigation
fix(tempo): skip getKey read before access key sends - #5411
Conversation
Adds an `afterFillTransactionError` chain hook phase that retries `eth_fillTransaction` once. Tempo drops a pending key authorization the node refuses with `KeyAlreadyExists` and fills again.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 7c2ed4c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7c2ed4c00e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const pending = refused ? await getPending(request) : undefined | ||
| if (!pending) return undefined |
There was a problem hiding this comment.
Retry stale authorizations even after another request removes them
When concurrent sends share an access key whose authorization is still pending locally but already registered on-chain, both requests can attach the authorization before either fill completes. The first KeyAlreadyExists response removes the manager entry; if the second response arrives afterward, getPending(request) returns undefined, so that request never retries without its stale authorization. The fallback also requires the pending entry before stripping the authorization, leaving the second send to fail during gas estimation instead. Base the retry decision on the authorization attached to the failed request, independently of whether another request has already cleared the shared manager entry.
Useful? React with 👍 / 👎.
Attaches pending key authorizations without a
getKeyread and retrieseth_fillTransactiononce without one the node refuses withKeyAlreadyExists. Also skips thedecimalsread for TIP-20 insufficient balance errors, removing two RPC round trips before failed or first sends.