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

Bootstrapping Generates Root Snapshot File #424

Merged
merged 51 commits into from
Apr 16, 2021

Conversation

danuio
Copy link
Contributor

@danuio danuio commented Feb 18, 2021

@danuio danuio changed the base branch from master to feature/serializable-snapshots February 18, 2021 12:13
@danuio danuio marked this pull request as draft February 18, 2021 12:13
Copy link
Member

@jordanschalm jordanschalm left a comment

Choose a reason for hiding this comment

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

For this lint error, needs to do serializable.Encodable(). inmem.Snapshot implements protocol.Snapshot but is not directly serializable, inmem.EncodableSnapshot has all the exported fields needed to be serialized from another package.

For this error, it is fixed in this PR #374

cmd/bootstrap/run/snapshot.go Outdated Show resolved Hide resolved
@jordanschalm
Copy link
Member

We will also need to update the testnet code that uses this.

I have added some more detail to the issue regarding the final step of this ticket:

Add an integration test identical to the MVP test, except one that starts from a post-genesis block

@danuio danuio changed the base branch from feature/serializable-snapshots to master March 16, 2021 16:59
danuio and others added 12 commits April 5, 2021 09:38
…om:onflow/flow-go into danu/5286/generate-root-snapshot-bootstrap
This commit is a reference point for reproducing inconsistent sealing
behaviour between integration tests (TestMVP_Bootstrap) and localnet.

Localnet can be started, then restarted, and sealing will continue.
(This is without submitting any transactions.)
make init && make start
make stop && make start

The TestMVP_Bootstrap integration test (which does the same network restart
automatically) fails to seal any blocks after the network is restarted.
@jordanschalm jordanschalm merged commit fa7a4c3 into master Apr 16, 2021
@jordanschalm jordanschalm deleted the danu/5286/generate-root-snapshot-bootstrap branch April 16, 2021 22:16
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.

None yet

3 participants