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

Snap sync UTXO set #2337

Open
kiltsonfire opened this issue Nov 1, 2024 · 0 comments
Open

Snap sync UTXO set #2337

kiltsonfire opened this issue Nov 1, 2024 · 0 comments

Comments

@kiltsonfire
Copy link
Contributor

kiltsonfire commented Nov 1, 2024

Rationale

We need to be able to do snap sync in a way that allows us to download the UTXO sets that are using Muhash as the commitment which is not subject to griefing.

https://x.com/MichaelSuttonIL/status/1852126341392667092

Implementation

To do this we will need the following:

  1. Nodes that periodically stop processing, to allow them to create a set proof for the snap sync point
  • This will be a set of muhashes that hash into the commitment of the utxo set made in the block
  1. A way for these set proofs to be disseminated to other nodes and have these node run the validation calculation and then make it available to anyone that asks iff it is a valid set proof
  2. A way to get a set proof from a peer
  3. Download chunks specified in the set proof when snap syncing any of the utxo sets.

If a peer provides a bad set proof they should be banned. If a peer provides a bad chunk of the set they should be ban.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants