-
Couldn't load subscription status.
- Fork 412
Open
Labels
discussionThere's still a discussion ongoingThere's still a discussion ongoingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
Book of BDK has a overview of the expected sync behavior
However full_scan seems to completely ignore the revealed addresses and goes by the gap only. This means that if there is a large gap it will not discover any transactions even though the addresses are already revealed. A sync will discover those transactions, such that for a "full scan" one has to do full_scan and sync .
Thanks to @design-rrr for finding this behavior.
- Reproducible in bdkpython 2.0.0
Why not do sync most of the time?
- onchain wallets can have multiple instances running, that reveal and use scripts. That means that the wallet always has to sync at least the gap limit ahead to discover txs that other instances used.
What to do about it?
- Was this behavior intended?
- But then to do a full scan, one has to hit the server twice... --> inefficient
ValuedMammal and design-rrr
Metadata
Metadata
Assignees
Labels
discussionThere's still a discussion ongoingThere's still a discussion ongoingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Type
Projects
Status
Discussion