Skip to content

Keep local transaction data when syncing from backend - #843

Closed
DRadmir wants to merge 2 commits into
mainfrom
wt1/swap-state-ownership
Closed

Keep local transaction data when syncing from backend#843
DRadmir wants to merge 2 commits into
mainfrom
wt1/swap-state-ownership

Conversation

@DRadmir

@DRadmir DRadmir commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Sync from the backend overwrote the whole transaction row. A swap could lose its provider and assets, stop being tracked, and get marked as failed while it was still going.

Now sync updates only what the indexer observed on chain. Type and metadata are taken from it only when it has them and the transaction has already finished.

  • Test

@DRadmir
DRadmir force-pushed the wt1/swap-state-ownership branch from 8f2b9cd to 9e2a649 Compare August 7, 2026 11:21
@gemcoder21 gemcoder21 closed this Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants