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

spv: heaers-first sync under checkpoints is unecessary #745

Open
pinheadmz opened this issue Jun 20, 2022 · 0 comments
Open

spv: heaers-first sync under checkpoints is unecessary #745

pinheadmz opened this issue Jun 20, 2022 · 0 comments

Comments

@pinheadmz
Copy link
Member

When checkpoints are active, both full and spv nodes sync headers-first up to the last checkpoint, and then go back and request blocks. For full nodes, these blocks are not verified but applied to wallet, UTXO set and urkel tree. For SPV nodes, what we actually get are merkleblocks which are only applied to the wallet. This seems somewhat wasteful since headers-first sync and SPV merkleblock sync are basically the same thing. We can probably sync SPV a bit faster by requesting merkle blocks from the beginning. We can still check that checkpoint blocks are correct but there's no need to downlado 100,000 headers twice from the network

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

1 participant