Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync improvements #598

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Sync improvements #598

merged 3 commits into from
Dec 12, 2024

Conversation

dangeross
Copy link
Collaborator

@dangeross dangeross commented Dec 12, 2024

This PR:

  • Does a full sync on both new Liquid and Bitcoin blocks
  • Improves the tracking of unconfirmed refund txs for incoming chain swaps

@dangeross dangeross force-pushed the savage-sync-improvements branch from 94c8c76 to 35bf522 Compare December 12, 2024 08:33
_ = cloned.sync().await;
} else {
// Partial sync of wallet txs
_ = cloned.sync_payments_with_chain_data(true).await;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not trigger sync event (UI won't refresh) perhaps we should pass the partial flag to sync and call sync?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to pass partial_sync through the sync fn, so the Synced event emits every ~10 seconds

@dangeross dangeross force-pushed the savage-sync-improvements branch from 35bf522 to 6eb23eb Compare December 12, 2024 19:29
@dangeross dangeross merged commit ba31956 into rt-sync Dec 12, 2024
9 checks passed
hydra-yse pushed a commit that referenced this pull request Dec 13, 2024
* Full sync on new Bitcoin block

* Track the last unconfirmed refund tx

* Trigger synced event on partial sync
hydra-yse pushed a commit that referenced this pull request Dec 14, 2024
* Full sync on new Bitcoin block

* Track the last unconfirmed refund tx

* Trigger synced event on partial sync
hydra-yse pushed a commit that referenced this pull request Dec 24, 2024
* Full sync on new Bitcoin block

* Track the last unconfirmed refund tx

* Trigger synced event on partial sync
hydra-yse added a commit that referenced this pull request Dec 24, 2024
* feat(rt-sync): add persistency layer (#555)

* feat(rt-sync): add pull and merge (#556)

* feat(rt-sync): add push logic and run method (#568)

* feat(rt-sync): integrate rt-sync with the sdk

fix: add formatting command to build

feat: add secondary trigger to sync

deps: add tonic tls-webpki-roots

feat: prevent double claiming on status stream handlers

fix: add tx commit to chain swap update (#588)

fix: ensure we pull records before prepare_send

fix: fmt and tests

* fix: set initial pulled state to `Recoverable`

* feat(rt-sync): add `last_derivation_index` to sync service

* Single chain source

* Handle Recoverable state

* fix(rt-sync): chain recovery integration (#590)

Co-authored-by: yse <[email protected]>

* feat(rt-sync): add `pair_fees_json`

* fix(rt-sync): clean already persisted incoming records

* feat: cache wallet info (#591)

* log: add status-stream logging for non-local swaps

* Sync improvements (#598)

* Full sync on new Bitcoin block

* Track the last unconfirmed refund tx

* Trigger synced event on partial sync

* fix: remove `REPLACE` clause from swap insert/update

* fix(rt-sync): update chain swap payer/receiver amount (#604)

* Fix syncing last derivation index

* fix: update bindings and lockfile

* remove logs

* fix(rt-sync): avoid reuse of derivation index update logic (#608)

* Add 5 index buffer to full scan

* Fix storing claim_address (#609)

* Filter incoming MRH txs by swap timestamp

* fix liquid panding timestamp

* persist tx data timestamp

* Update unconfirmed transactions

* feat: add API key (#618)

* Use configured lazy connect channel in sync service

* fix: set lower-case header (#624)

* fix error message

* Store & Sync LNURL info (#617)

* Persist and decrypt LNURL info

* Update Notification Plugin

* Sync payment details

* Update list payments to include chain swaps with only user lockup (#620)

* Update payments query to include chain swaps without txs

* Allow emitting a payment event without tx_id

* fix: bindings

---------

Co-authored-by: Ross Savage <[email protected]>
Co-authored-by: Ross Savage <[email protected]>
Co-authored-by: Roei Erez <[email protected]>
@dangeross dangeross deleted the savage-sync-improvements branch January 3, 2025 13:25
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