Skip to content

Commit c18e44f

Browse files
serban300alvicsam
authored andcommitted
Fix zombienet-substrate-0002-validators-warp-sync (#8878)
Closes #8871 Related to #8748 Fix `zombienet-substrate-0002-validators-warp-sync`
1 parent 0145fbb commit c18e44f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

substrate/zombienet/0002-validators-warp-sync/test-validators-warp-sync.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ chain_spec_path = "chain-spec.json"
1818
validator = true
1919
args = ["--log=beefy=debug", "--sync warp"]
2020

21+
[[relaychain.nodes]]
22+
name = "other-validator"
23+
validator = true
24+
args = ["--log=beefy=debug", "--sync warp"]
25+
2126
# we need at least 3 nodes for warp sync
2227
[[relaychain.nodes]]
2328
name = "charlie"

substrate/zombienet/0002-validators-warp-sync/test-validators-warp-sync.zndsl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ bob: log line matches "Block history download is complete" within 120 seconds
3131
alice: reports block height is at least {{DB_BLOCK_HEIGHT}} within 10 seconds
3232
bob: reports block height is at least {{DB_BLOCK_HEIGHT}} within 10 seconds
3333

34+
# We can be in a case where finality is lagging. For example:
35+
# Let's wait until finality works correctly.
36+
alice: reports substrate_block_height{status="finalized"} is at least {{DB_BLOCK_HEIGHT}} within 120 seconds
37+
bob: reports substrate_block_height{status="finalized"} is at least {{DB_BLOCK_HEIGHT}} within 120 seconds
38+
39+
# Make sure that BEEFY voting started.
40+
alice: reports substrate_beefy_best_block is at least 1 within 60 seconds
41+
bob: reports substrate_beefy_best_block is at least 1 within 60 seconds
42+
# Make sure that BEEFY voting is advancing
3443
# In the worst case scenario, the validators should vote on 1 mandatory block each 6 seconds. And 1 era = 200 blocks.
3544
alice: reports substrate_beefy_best_block is at least {{200*180/6}} within 180 seconds
3645
bob: reports substrate_beefy_best_block is at least {{200*180/6}} within 180 seconds

0 commit comments

Comments
 (0)