Added Interrupted status to transaction entity#434
Merged
GabrielMartinezRodriguez merged 8 commits intomasterfrom Feb 26, 2025
Merged
Added Interrupted status to transaction entity#434GabrielMartinezRodriguez merged 8 commits intomasterfrom
GabrielMartinezRodriguez merged 8 commits intomasterfrom
Conversation
Deploying happychain with
|
| Latest commit: |
caa054f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3c8eb51d.happychain.pages.dev |
| Branch Preview URL: | https://gabriel-transaction-reorder.happychain.pages.dev |
This was referenced Feb 11, 2025
Merged
Merged
Merged
Contributor
Author
Merged
10 tasks
HAPPY-365 TXM: Handle cases where the nonce moved past an intent but all our attemps are not included
Probably add new status, something like TRANSACTION_REORDER. The tx can then re-enqueue it from an originator if need be. The downside is we can have the tx "cut in line" — but because we already assigned nonces and probably submitted the other txs in the queue, this would require implementing nonce renumbering, which is bound to be extremely messy and complex. This should never happen anyway — in theory it only happens if the submitter key is used concurrently somewhere else. |
0add1f7 to
e2f7e3e
Compare
44e3f25 to
4e2c3a5
Compare
e2f7e3e to
db160d2
Compare
4e2c3a5 to
09281ca
Compare
c57ca4e to
ff8bd52
Compare
52b0968 to
23723dd
Compare
0f06207 to
073aefb
Compare
4f3b431 to
dabb31d
Compare
926f11e to
734d609
Compare
734d609 to
6c325df
Compare
11 tasks
norswap
approved these changes
Feb 25, 2025
52ba575 to
caa054f
Compare
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Linked Issues
Description
This PR addresses the problem we were experiencing in production, where there was a nonce that had been used, but we did not have the corresponding attempt recorded in our system. This was causing infinite retries or cancellations if the transaction had a deadline.
Now, we have implemented a new status, Interrupted, where transactions meeting this criteria are moved. The user can decide to include the transaction again by sending it through the originator function.
Toggle Checklist
Checklist
Basics
norswap/build-system-caching).Reminder: PR review guidelines
Correctness
testnet, mainnet, standalone wallet, ...).
< INDICATE BROWSER, DEMO APP & OTHER ENV DETAILS USED FOR TESTING HERE >
< INDICATE TESTED SCENARIOS (USER INTERFACE INTERACTION, CODE FLOWS) HERE >
and have updated the code & comments accordingly.
Architecture & Documentation
(2) commenting these boundaries correctly, (3) adding inline comments for context when needed.
comments.
in a Markdown document.
pacakges/coreandpackages/react), see here for more info.