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

[Question] How does Unstoppable sync with the BTC blockchain? #3984

Closed
vetko opened this issue Mar 14, 2022 · 3 comments
Closed

[Question] How does Unstoppable sync with the BTC blockchain? #3984

vetko opened this issue Mar 14, 2022 · 3 comments

Comments

@vetko
Copy link

vetko commented Mar 14, 2022

I tried to search for this information, but unfortunately I wasn't able to find anything, neither on Google nor in the faq nor between the github issues.

Can you please give a bit more details on how the sync with blockchains works (in particular with the BTC blockchain)?
For example, are you using any BIPs to achieve that (e.g. BIP 37, BIP 157 / 158, or something else)? Or is it some kind of full-sync?

Thank you.

@esen
Copy link
Member

esen commented Mar 15, 2022

Hey @vetko ,

We use bitcoin BIP37 (SPV) client implementation in bitcoin-kit-ios repository. Bitcoin network can be synced fully from bitcoin peers as described in SPV protocol, OR you can chose to use our optimized synchronization. Optimized synchronization uses checkpoints of the blockchain which are updated in each app release and our API to retrieve transactions before those checkpoints. After the chain is synced once, it continues to sync only from the peers via SPV protocol. Using full SPV or optimized sync is chosen by the user in the wallet settings.

@vetko
Copy link
Author

vetko commented Mar 15, 2022

Hi @esen, thanks for the answer!

I see that there has been some investigation in 2019 regarding introducing BIP 157/158 (neutrino) to Unstoppable (horizontalsystems/unstoppable-wallet-android#716). Is there any chance that this gets back on the radar again?
(Not asking from the point of view of introducing the Lightning Network to Unstoppable, but rather changing BIP 37 to BIP 158).

@esen
Copy link
Member

esen commented Mar 16, 2022

We don't have any plans on that in a near future. We definitely will switch to neutrino or some kind of other solutions which may be more optimized for the client. More and more nodes are disabling Bloom Filters on their side, so this is a matter of time. But currently, we don't have any concrete plans on it.

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

No branches or pull requests

3 participants