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

Add root block storage to node. #1120

Merged
merged 4 commits into from
Jan 31, 2023
Merged

Add root block storage to node. #1120

merged 4 commits into from
Jan 31, 2023

Conversation

shamil-gadelshin
Copy link
Member

This PR adds root blocks storage and API as part of the piece verification process. Fixes #1118

Code contributor checklist:

@shamil-gadelshin shamil-gadelshin added farmer Farming library/app node Node (service library/node app) labels Jan 30, 2023
@shamil-gadelshin shamil-gadelshin added this to the Gemini 3 milestone Jan 30, 2023
@shamil-gadelshin shamil-gadelshin self-assigned this Jan 30, 2023
Base automatically changed from farmers-refactoring to main January 30, 2023 14:37
Copy link
Member

@nazar-pc nazar-pc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generally makes sense to me, but it doesn't remove (as discussed) additional record roots storage in sc-consensus-subspace. If implemented there, there would probably be less code in general, no need to have another task and logic could be de-duplicated. Also now that we have records_roots we should probably remove records_roots and use records_roots instead.

TL;DR: This just adds more code on top without trying to de-duplicate logic and clean things up in the process. I'll have to do more refactoring on top if not done initially.

crates/subspace-service/src/root_blocks.rs Outdated Show resolved Hide resolved
@shamil-gadelshin shamil-gadelshin marked this pull request as ready for review January 31, 2023 08:50
@nazar-pc nazar-pc merged commit e8feaf8 into main Jan 31, 2023
@nazar-pc nazar-pc deleted the nodes-root-block-export branch January 31, 2023 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
farmer Farming library/app node Node (service library/node app)
Projects
Development

Successfully merging this pull request may close these issues.

Add root block storage for nodes
2 participants