Configure
In this section we discuss writing a configuration file
Example configuration
{
"name": "Pendulum",
"author": "xiuxiu",
"mode": "local",
"validator": {
"bin": "./bin/polkadot",
"dockerfile": "./tmp/Dockerfile",
"nodes": [
{
"name": "validator_node",
"chain": "./examples/specs/rococo-custom-2-raw.json",
"args": ["--alice", "--base-path=/tmp/relay/alice"],
"port": 30343,
"ws_port": 9945,
"rpc_port": null
},
{
"name": "validator_node2",
"chain": "./examples/specs/rococo-custom-2-raw.json",
"args": ["--bob", "--base-path=/tmp/relay/bob"],
"port": 30353,
"ws_port": 9946,
"rpc_port": null
}
]
},
"collator": {
"bin": "./bin/parachain-collator",
"dockerfile": "./tmp/Dockerfile",
"nodes": [
{
"name": "glitch-princess-1",
"chain": "./examples/specs/local-chain-raw.json",
"args": [
"--rpc-cors",
"all",
"--force-authoring",
"--enable-offchain-indexing",
"true"
],
"port": 30344,
"ws_port": 8844,
"rpc_port": null,
"relay": {
"chain": "./examples/specs/rococo-custom-2-raw.json",
"args": [
"--rpc-cors",
"all",
"--force-authoring"
],
"port": 30345,
"ws_port": 9944,
"rpc_port": null
}
}
]
}
}Last updated
Was this helpful?