Description: Warp sync Network: ./test-block-building-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 # In theory we should have 3 peers. But for some reason dave is requesting the # block twice and gets banned by Alice. The request is done during the # warp-sync. It is a bug, so here we work around it. alice: reports peers count is at least 2 within 60 seconds bob: reports peers count is at least 2 within 60 seconds charlie: reports peers count is at least 2 within 60 seconds dave: reports peers count is at least 2 within 60 seconds # db snapshot has {{DB_BLOCK_HEIGHT}} blocks alice: reports block height is at least {{DB_BLOCK_HEIGHT}} within 60 seconds bob: reports block height is at least {{DB_BLOCK_HEIGHT}} within 60 seconds charlie: reports block height is at least {{DB_BLOCK_HEIGHT}} within 60 seconds alice: reports block height is greater than {{DB_BLOCK_HEIGHT}} within 75 seconds bob: reports block height is greater than {{DB_BLOCK_HEIGHT}} within 75 seconds charlie: reports block height is greater than {{DB_BLOCK_HEIGHT}} within 75 seconds dave: reports block height is at least 1 within 60 seconds dave: reports block height is at least {{DB_BLOCK_HEIGHT}} within 60 seconds dave: reports block height is greater than {{DB_BLOCK_HEIGHT}} within 60 seconds dave: log line matches "Warp sync is complete" within 60 seconds # State sync is logically part of warp sync dave: log line matches "State sync is complete" within 60 seconds dave: log line matches "Block history download is complete" within 10 seconds dave: reports substrate_beefy_best_block is at least {{DB_BLOCK_HEIGHT}} within 180 seconds dave: reports substrate_beefy_best_block is greater than {{DB_BLOCK_HEIGHT}} within 60 seconds # The block history download runs in the background while the fresh blocks are imported. This error can pop out in the log and is acceptable: the freshly announced block may not have the parent imported yet. dave: count of log lines containing "error(?! importing block .*: block has an unknown parent)" is 0 within 10 seconds dave: count of log lines containing "verification failed" is 0 within 10 seconds