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

Chain state encoding #1474

Merged
merged 139 commits into from
Jan 26, 2024
Merged

Conversation

MujkicA
Copy link
Contributor

@MujkicA MujkicA commented Nov 8, 2023

Snapshots are now generated along with a metadata file describing the encoding used. The metadata file contains encoding details as well as the location of additional files inside the snapshot directory containing the actual data.

Snapshot generation is streamed so that memory usage is kept to a minimum.

The CLI was expanded to allow for customization of the snapshot encoding used.

JSON encoding was kept human friendly (Option::None not encoded, all state in one file).

Parquet is used for compression and indexing while the actual data is encoded using Postcard.

bin/e2e-test-client/tests/integration_tests.rs Outdated Show resolved Hide resolved
crates/chain-config/src/config/chain.rs Outdated Show resolved Hide resolved
crates/chain-config/src/config/state.rs Show resolved Hide resolved
bin/fuel-core/Cargo.toml Show resolved Hide resolved
crates/fuel-core/src/service/genesis.rs Show resolved Hide resolved
crates/fuel-core/src/service/genesis.rs Show resolved Hide resolved
crates/fuel-core/src/service/genesis.rs Show resolved Hide resolved
Copy link
Member

@MitchTurner MitchTurner left a comment

Choose a reason for hiding this comment

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

Looking really good. The tests warm my heart. Just left a few comments and nits.

@MujkicA MujkicA merged commit c4946de into feature/regenesis-support Jan 26, 2024
22 of 31 checks passed
@MujkicA MujkicA deleted the feature/stream-genesis-state branch January 26, 2024 01:02
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.

5 participants