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

blockchain, indexers: generate root summaries #250

Merged

Conversation

kcalvinalvin
Copy link
Contributor

@kcalvinalvin kcalvinalvin commented Feb 3, 2025

Root summaries are the utreexo accumulator of each of the roots at each block.
The roots at each block are hashed and they become the leaves of this accumulator.

This allows for committing the root summary into the binary so that peers may be able
to serve the proof and the roots at a given block.

The root summaries are generated every 50,000 blocks and the proofs are backwards
compatible as no leaves are removed from the accumulator. The new proofs will just have
extra hashes appended to the end which the requesting node can safely ignore.

@kcalvinalvin kcalvinalvin changed the title blockchain, indexers: blockchain, indexers: generate root summaries Feb 3, 2025
@kcalvinalvin kcalvinalvin force-pushed the 2025-02-03-add-root-summary-state branch from 281e109 to 9030232 Compare February 3, 2025 11:49
Root summaries are now generated at the last 50,000 block interval and
is stored in the summaries flat file state. If the summaries are not
availble on start, the summaries are generated.
@kcalvinalvin kcalvinalvin force-pushed the 2025-02-03-add-root-summary-state branch from 9030232 to b2b65f4 Compare February 4, 2025 07:35
@kcalvinalvin kcalvinalvin merged commit 342f890 into utreexo:main Feb 4, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

1 participant