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

feat: async add new address to electrum #113

Merged
merged 5 commits into from
Jan 8, 2024
Merged

Conversation

Davidson-Souza
Copy link
Collaborator

Until now, one needs to explicitly add a new address to the watch-only wallet and trigger a rescan, effectively downloading all blocks again. Now that we have compact block filters, we can make this way more efficiently.

The goal here's to allow the electrum server to rescan and find transactions from newly added addresses (e.g. addresses that were subscribed by a wallet, but aren't part of our watch-only wallet yet). With this feature, there's no need to extract the wallet's xpub or descriptors before starting using floresta.

PSA: this pr already builds on top of #108

@Davidson-Souza Davidson-Souza changed the title [WIP] feat: asyncronous add new electrum wallet [WIP] feat: async add new electrum wallet Dec 25, 2023
@Davidson-Souza Davidson-Souza changed the title [WIP] feat: async add new electrum wallet [WIP] feat: async add new address to electrum Dec 25, 2023
@Davidson-Souza Davidson-Souza marked this pull request as ready for review December 27, 2023 01:29
@Davidson-Souza Davidson-Souza changed the title [WIP] feat: async add new address to electrum feat: async add new address to electrum Dec 27, 2023
@Davidson-Souza Davidson-Souza force-pushed the electrum-rescan branch 3 times, most recently from b160a7e to f44622d Compare December 27, 2023 20:56
@a-moreira a-moreira self-requested a review December 28, 2023 14:49
@a-moreira a-moreira added the enhancement New feature or request label Dec 28, 2023
We use this to tell an address isn't cached yet.
If a client subscribes an address that we haven't cached yet, add this
to our wallet and try to find historical transactions for it
@Davidson-Souza Davidson-Souza merged commit c205d03 into master Jan 8, 2024
6 checks passed
@Davidson-Souza Davidson-Souza deleted the electrum-rescan branch January 8, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants