@@ -40,11 +40,11 @@ $ scripts/build_testnetctl.sh
40
40
# Start a new network
41
41
$ ./build/testnetctl start-network --avalanchego-path=/path/to/avalanchego
42
42
...
43
- Started network 1337 @ /home/me/.testnetctl/1337-20230705-213938-1707053131
43
+ Started network 1337 @ /home/me/.testnetctl/networks/ 1337-20230705-213938-1707053131
44
44
45
45
Configure testnetctl to target this network by default with one of the following statements:
46
- - source /home/me/.testnetctl/1337-20230705-213938-1707053131/network.env
47
- - export TESTNETCTL_NETWORK_DIR=/home/me/.testnetctl/1337-20230705-213938-1707053131
46
+ - source /home/me/.testnetctl/networks/ 1337-20230705-213938-1707053131/network.env
47
+ - export TESTNETCTL_NETWORK_DIR=/home/me/.testnetctl/networks/ 1337-20230705-213938-1707053131
48
48
49
49
# Stop the network
50
50
$ ./build/testnetctl stop-network --network-dir=/path/to/network
@@ -121,25 +121,26 @@ A local network relies on configuration written to disk in the following structu
121
121
122
122
```
123
123
HOME
124
- └── .testnetctl // Default parent directory for local networks
125
- └── 1337-20230630-203525-2336789419 // Network path with form [network-id]-[timestamp]
126
- ├── NodeID-37E8UK3x2YFsHE3RdALmfWcppcZ1eTuj9 // The id of a node is the name of its data dir
127
- │ ├── chainData
128
- │ │ └── ...
129
- │ ├── config.json // Node flags
130
- │ ├── db
131
- │ │ └── ...
132
- │ ├── logs
133
- │ │ └── ...
134
- │ ├── plugins
135
- │ │ └── ...
136
- │ └── runtime.json // Node runtime state (bootstrap IP, API URI, PID)
137
- ├── chains
138
- │ └── C
139
- │ └── cchain_config.json // C-Chain config for all nodes
140
- ├── defaults.json // Default flags and configuration for network
141
- ├── genesis.json // Genesis for all nodes
142
- └── network.env // Sets network dir env to simplify use of network
124
+ └── .testnetctl // Root path for tool
125
+ └── networks // Default parent directory for local networks
126
+ └── 1337-20230630-203525-2336789419 // Network path with form [network-id]-[timestamp]
127
+ ├── NodeID-37E8UK3x2YFsHE3RdALmfWcppcZ1eTuj9 // The id of a node is the name of its data dir
128
+ │ ├── chainData
129
+ │ │ └── ...
130
+ │ ├── config.json // Node flags
131
+ │ ├── db
132
+ │ │ └── ...
133
+ │ ├── logs
134
+ │ │ └── ...
135
+ │ ├── plugins
136
+ │ │ └── ...
137
+ │ └── runtime.json // Node runtime state (bootstrap IP, API URI, PID)
138
+ ├── chains
139
+ │ └── C
140
+ │ └── cchain_config.json // C-Chain config for all nodes
141
+ ├── defaults.json // Default flags and configuration for network
142
+ ├── genesis.json // Genesis for all nodes
143
+ └── network.env // Sets network dir env to simplify use of network
143
144
144
145
```
145
146
0 commit comments