Skip to content

Fix new transaction notifications #889

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

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Conversation

swansontec
Copy link
Contributor

@swansontec swansontec commented Feb 3, 2025

We had a cacth-22 situation, where we needed a valid checkpoint to consider any transaction new, but we wouldn't update the checkpoint until we saw a new transaction.

Besides the catch-22, a fully-syncd wallet generally wouldn't have any activity that could update the checkpoint, leaving it stuck at undefined until a new transaction comes in, in which case that new transaction would never get a notification. Therefore, we need to set up an initial checkpoint at boot if we don't have one. This will be a one-time operation on a single device. After that, new devices will recieve the synced checkpoint.

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@swansontec swansontec force-pushed the william/fix-tx-notification branch from a9e4880 to fec2384 Compare February 3, 2025 23:45
@swansontec
Copy link
Contributor Author

/rebase

@github-actions github-actions bot force-pushed the william/fix-tx-notification branch from 8b4a406 to 333fda9 Compare February 5, 2025 00:37
@swansontec swansontec enabled auto-merge February 5, 2025 00:40
We had a cacth-22 situation, where we needed a valid checkpoint to consider any transaction new, but we wouldn't update the checkpoint until we saw a new transaction.

Besides the catch-22, a fully-syncd wallet generally wouldn't have any activity that could update the checkpoint, leaving it stuck at undefined until a new transaction comes in, in which case that new transaction would never get a notification. Therefore, we need to set up an initial checkpoint at boot if we don't have one. This will be a one-time operation on a single device. After that, new devices will recieve the synced checkpoint, and incoming transactions will receive notifications.
@swansontec swansontec force-pushed the william/fix-tx-notification branch from 333fda9 to 88a84ff Compare February 5, 2025 00:43
@swansontec swansontec merged commit ccff1df into master Feb 5, 2025
2 checks passed
@swansontec swansontec deleted the william/fix-tx-notification branch February 5, 2025 01:05
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