This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aakoshh
force-pushed
the
fm-363-state-sync-test
branch
from
December 13, 2023 13:34
50257c4
to
999b2e1
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes consensus-shipyard/ipc#178
The
snapshot-test
now sets up 4 nodes:node-0
: default created bycargo make setup
, preserving full block historynode-1
andnode-2
: usingnode-0
as P2P seed, preserving only 100 long block history, snapshotting every 10th blocknode-3
: usingnode-1
as P2P seed, and bothnode-1
andnode-2
as RPC for the light client, with syncstate enabled in cometbftOnce
node-0
,node-1
andnode-2
are running,cargo make node-3-setup
starts the last one. A successful sync looks as follows:node-3 logs
The nodes can be stopped with
cargo make snapshot-teardown
, leaving onlynode-0
which can be stopped withcargo make teardown
. The whole snapshot test routine can be done withcargo make
, and thenode-1|2|3
parts withcargo make test
.The PR also fixes the
CMT_
env vars in the infra scripts: we missed the[rpc]
and[p2p]
parts in the config.If we want we can enable snapshots by default now.