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

Split initial state from chain config #1459

Merged
merged 51 commits into from
Dec 20, 2023

Conversation

MujkicA
Copy link
Contributor

@MujkicA MujkicA commented Oct 27, 2023

Closes #1450

Separates the loading of the initial chain state from loading ChainConfig.

The parameters to the run command have been renamed to chain_params and chain_state. Should we rename the corresponding structs ChainConfig and StateConfig accordingly?
The block height is moved to the ChainConfig to be available instantly because the StateConfig will be streamed in a later PR.

@MujkicA MujkicA added the enhancement New feature or request label Oct 27, 2023
@MujkicA MujkicA self-assigned this Oct 27, 2023
@MujkicA MujkicA changed the base branch from master to feature/regenesis-support October 31, 2023 14:01
@MujkicA MujkicA changed the base branch from feature/regenesis-support to master October 31, 2023 14:16
@MujkicA MujkicA changed the base branch from master to feature/regenesis-support October 31, 2023 14:20
@MujkicA MujkicA marked this pull request as ready for review October 31, 2023 15:22
@MujkicA MujkicA requested review from bvrooman and xgreenx and removed request for bvrooman October 31, 2023 15:22
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.

LGTM. I feel like I'm lacking a little context in the goals of the overall feature and the followup work, but I'm happy with everything here.

Copy link
Collaborator

@xgreenx xgreenx left a comment

Choose a reason for hiding this comment

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

Thank you, looks definitely much better than everything in one structure!=)

Small comments that should be easy to resolve and we can merge

bin/fuel-core/src/cli/run.rs Outdated Show resolved Hide resolved
bin/fuel-core/src/cli/snapshot.rs Outdated Show resolved Hide resolved
crates/chain-config/src/config/chain.rs Outdated Show resolved Hide resolved
deployment/scripts/chainspec/beta_chainstate_spec.json Outdated Show resolved Hide resolved
tests/tests/deployment.rs Outdated Show resolved Hide resolved
crates/fuel-core/src/service/config.rs Outdated Show resolved Hide resolved
@MujkicA MujkicA requested a review from xgreenx November 30, 2023 13:13
tests/tests/deployment.rs Outdated Show resolved Hide resolved
tests/tests/deployment.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 Outdated Show resolved Hide resolved
crates/fuel-core/src/service/genesis.rs Outdated Show resolved Hide resolved
MujkicA and others added 4 commits December 7, 2023 15:16
Co-authored-by: Brandon Vrooman <brandon.vrooman@fuel.sh>
Co-authored-by: Brandon Vrooman <brandon.vrooman@fuel.sh>
…/fuel-core into feature/split-state-from-config
Copy link
Contributor

@bvrooman bvrooman left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together and addressing all the feedback!

benches/benches/vm_initialization.rs Outdated Show resolved Hide resolved
@MujkicA MujkicA merged commit 1ff2a7b into feature/regenesis-support Dec 20, 2023
31 checks passed
@MujkicA MujkicA deleted the feature/split-state-from-config branch December 20, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract the initial_state from the ChainConfig
7 participants