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

Store state dump into NeoFS #3782

Open
AnnaShaleva opened this issue Jan 9, 2025 · 0 comments
Open

Store state dump into NeoFS #3782

AnnaShaleva opened this issue Jan 9, 2025 · 0 comments
Labels
feature Completely new functionality I3 Minimal impact S1 Highly significant U2 Seriously planned
Milestone

Comments

@AnnaShaleva
Copy link
Member

As a part of neo-project/neo#3463, we need to implement util upload-state CLI command (similar to util upload-bin introduced in https://github.com/nspcc-dev/neo-go/pull/3582`): this command should fetch MPT state at the given height via RPC and upload it to the NeoFS block storage.

The format of state dump should be suitable to reuse it by StateSync module: raw MPT nodes dump starting from stateroot traversed in the same direction as StateSync module exects. State dump object should have at least the following attributes (suggestions are welcomed):

  • identifier:height (something like State:123)
  • stateroot at the given height
  • timestamp of the block at the given height
  • timestamp of the object creation

I'd suggest to use a separate container for now (not the same container as for BlockFetcher) in order to avoid accidental data corruption in existing block storage containers. However, after implementation is finalized and tested, we may consider migration to BlockFetcher containers.

Ref. #3519 (043e9f0 already contains suitable traversal code).

@AnnaShaleva AnnaShaleva added feature Completely new functionality I3 Minimal impact U2 Seriously planned S1 Highly significant labels Jan 9, 2025
@AnnaShaleva AnnaShaleva added this to the v0.108.0 milestone Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Completely new functionality I3 Minimal impact S1 Highly significant U2 Seriously planned
Projects
None yet
Development

No branches or pull requests

1 participant