-
Notifications
You must be signed in to change notification settings - Fork 692
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
318 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
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
222 changes: 222 additions & 0 deletions
222
substrate/zombienet/0004-basic-beefy-warp-sync/chain-spec.json
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
substrate/zombienet/0004-basic-beefy-warp-sync/generate-warp-sync-database.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# this file is not intended to be executed in CI stage | ||
[relaychain] | ||
default_image = "docker.io/paritypr/substrate:latest" | ||
default_command = "/home/serban/workplace/sources/polkadot-sdk/target/release/substrate-node" | ||
|
||
# refer to ./README.md for more details on how to create snapshot and spec | ||
chain = "local" | ||
chain_spec_path = "/home/serban/workplace/snapshots/db-test-gen/local.json" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true |
36 changes: 36 additions & 0 deletions
36
substrate/zombienet/0004-basic-beefy-warp-sync/test-warp-sync.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[settings] | ||
enable_tracing = false | ||
|
||
#[relaychain] | ||
#default_command = "/home/serban/workplace/sources/polkadot-sdk/target/release/substrate-node" | ||
# | ||
#chain = "local" | ||
#chain_spec_path = "/home/serban/workplace/snapshots/db-test-gen/local.json" | ||
|
||
[relaychain] | ||
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}" | ||
default_command = "substrate-node" | ||
|
||
chain = "local" | ||
chain_spec_path = "chain-spec.json" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0004-basic-beefy-warp-sync/chains.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0004-basic-beefy-warp-sync/chains.tgz" | ||
|
||
#we need at least 3 nodes for warp sync | ||
[[relaychain.nodes]] | ||
name = "charlie" | ||
validator = false | ||
db_snapshot="https://storage.googleapis.com/zombienet-db-snaps/substrate/0004-basic-beefy-warp-sync/chains.tgz" | ||
|
||
[[relaychain.nodes]] | ||
name = "dave" | ||
validator = false | ||
args = ["--sync warp"] |
31 changes: 31 additions & 0 deletions
31
substrate/zombienet/0004-basic-beefy-warp-sync/test-warp-sync.zndsl
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Description: Warp sync | ||
Network: ./test-warp-sync.toml | ||
Creds: config | ||
|
||
alice: reports node_roles is 4 | ||
bob: reports node_roles is 4 | ||
charlie: reports node_roles is 1 | ||
dave: reports node_roles is 1 | ||
|
||
alice: reports peers count is at least 3 within 60 seconds | ||
bob: reports peers count is at least 3 within 60 seconds | ||
charlie: reports peers count is at least 3 within 60 seconds | ||
dave: reports peers count is at least 3 within 60 seconds | ||
|
||
|
||
# db snapshot has #17751 blocks | ||
alice: reports block height is at least 46742 within 60 seconds | ||
bob: reports block height is at least 46742 within 60 seconds | ||
charlie: reports block height is at least 46742 within 60 seconds | ||
|
||
dave: reports block height is at least 1 within 60 seconds | ||
dave: reports block height is at least 46741 within 60 seconds | ||
dave: reports block height is at least 46742 within 60 seconds | ||
|
||
dave: log line matches "Warp sync is complete" within 60 seconds | ||
dave: log line matches "Block history download is complete" within 60 seconds | ||
dave: log line matches "🥩 Concluded mandatory round #46616" within 60 seconds | ||
|
||
|
||
dave: count of log lines containing "error" is 0 within 10 seconds | ||
dave: count of log lines containing "verification failed" is 0 within 10 seconds |