[settings]
timeout = 3600
node_spawn_timeout = 600
local_ip = "127.0.0.1"
base_dir = "/tmp/zombienet"
spawn_concurrency = 4
tear_down_on_failure = true
bootnodes_addresses = ["/ip4/127.0.0.1/tcp/30333/p2p/12D3KooW..."]
#![allow(unused)]
fn main() {
use zombienet_sdk::NetworkConfigBuilder;
let config = NetworkConfigBuilder::new()
.with_relaychain(|r| {
r.with_chain("rococo-local")
.with_default_command("polkadot")
.with_validator(|v| v.with_name("alice"))
})
.with_global_settings(|gs| {
gs.with_network_spawn_timeout(3600)
.with_node_spawn_timeout(600)
.with_local_ip("127.0.0.1")
.with_base_dir("/tmp/zombienet")
.with_spawn_concurrency(4)
})
.build()
.unwrap();
}
| Option | Type | Default | Description |
timeout | Number | 3600 | Global timeout (seconds) for network spawn |
node_spawn_timeout | Number | 600 | Individual node spawn timeout (seconds). Override with ZOMBIE_NODE_SPAWN_TIMEOUT_SECONDS env var |
local_ip | String | 127.0.0.1 | Local IP for exposed services |
base_dir | String | Random temp dir | Base directory for network artifacts |
spawn_concurrency | Number | — | Number of concurrent spawn processes. Override with ZOMBIE_SPAWN_CONCURRENCY env var |
tear_down_on_failure | Boolean | true | Tear down network if nodes become unresponsive |
bootnodes_addresses | Array | — | External bootnode multiaddresses |