diff --git a/substrate/zombienet/0001-basic-warp-sync/README.md b/substrate/zombienet/0001-basic-warp-sync/README.md index 1f8bddee640cc..3d46db0a06dce 100644 --- a/substrate/zombienet/0001-basic-warp-sync/README.md +++ b/substrate/zombienet/0001-basic-warp-sync/README.md @@ -10,17 +10,18 @@ The `dave` node executed with `--sync warp` syncs database with the rest of the Database was prepared using the following zombienet file (`generate-warp-sync-database.toml`): ``` [relaychain] -default_image = "docker.io/parity/substrate:master" +default_image = "docker.io/paritypr/substrate:master" default_command = "substrate" -chain = "gen-db" +chain = "local" chain_spec_path = "chain-spec.json" [[relaychain.nodes]] name = "alice" validator = true - + args = ["--state-pruning archive --blocks-pruning archive"] + [[relaychain.nodes]] name = "bob" validator = true @@ -32,33 +33,30 @@ The zombienet shall be executed with the following command, and run for some per ``` Once the zombienet is stopped, the database snapshot -(`{alice,bob}/data/chains/local_testnet/db/` dirs) was created using the following +(`alice/data/chains/local_testnet/db/` dir) was created using the following commands: ```bash -mkdir -p db-snapshot/{alice,bob}/data/chains/local_testnet/db/ +mkdir -p db-snapshot/alice/data/chains/local_testnet/db/ cp -r db-test-gen/alice/data/chains/local_testnet/db/full db-snapshot/alice/data/chains/local_testnet/db/ -cp -r db-test-gen/bob/data/chains/local_testnet/db/full db-snapshot/bob/data/chains/local_testnet/db/ ``` -The file format should be `tar.gz`. File shall contain `local_testnet` folder and its subfolders, e.g.: +Sample command to prepare archive: ``` -$ tar tzf chains.tgz | head -local_testnet/ -local_testnet/db/ -local_testnet/db/full/ -... -local_testnet/db/full/000469.log +tar -C db-snapshot/alice/ -czf chains.tgz ./ ``` -Sample command to prepare archive: +The file format should be `tar.gz`. File shall contain `local_testnet` folder and its subfolders, e.g.: ``` -tar -C db-snapshot/alice/data/chains/ -czf chains.tgz local_testnet +$ tar tzf chains.tgz | head +data/chains/local_testnet/ +data/chains/local_testnet/db/ +data/chains/local_testnet/db/full/ +... +data/chains/local_testnet/db/full/000469.log ``` Also refer to: [zombienet#578](https://github.com/paritytech/zombienet/issues/578) -The `raw` chain-spec shall also be saved: `db-test-gen/gen-db-raw.json`. - # Where to upload database The access to this [bucket](https://console.cloud.google.com/storage/browser/zombienet-db-snaps/) is required. @@ -81,8 +79,6 @@ Test can be run with the following command: zombienet-linux test --dir db-snapshot --provider native test-warp-sync.zndsl ``` -*NOTE*: currently blocked by: [zombienet#578](https://github.com/paritytech/zombienet/issues/578) - # Save some time hack Substrate can be patched to reduce the grandpa session period.