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 flat state specs to resharding NEP #570

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

Trisfald
Copy link

Filling the specification section about flat state.

@Trisfald Trisfald requested a review from a team as a code owner October 28, 2024 14:23
Copy link
Contributor

@wacban wacban left a comment

Choose a reason for hiding this comment

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

LGTM

neps/nep-0568.md Outdated
Comment on lines 102 to 104
4) Children shards must apply the delta changes from the first block of the new
shard layout until the tip of the canonical chain. This operation is done in
another background task to avoid slowdowns while processing blocks.
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be until the final block, not the tip.

neps/nep-0568.md Outdated
Comment on lines 87 to 90
For the reason stated above, the chosen strategy is to reshard Flat State in a
long-running background task. The new shards' states must converge with their
Mem Tries representation in a reasonable amount of time, indicatively by the
first half of the new epoch.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the first half of the new epoch? It's just for my information, no need to add it here. I don't think it's too important so maybe skip this part (the "indicatively by the first half of the new epoch").

Copy link
Author

Choose a reason for hiding this comment

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

Removed!

It was badly worded; the flat state must converge with memtrie, at some point in time.

The time consideration was to have flat storage ready soon enough so that state parts for the new shards can be distributed before the next epoch.

@Trisfald Trisfald merged commit 8d8e761 into near:resharding Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: NEW
Development

Successfully merging this pull request may close these issues.

2 participants