@@ -20,8 +20,7 @@ orchestrate the same temporary networks without the use of an rpc daemon.
20
20
- [ Configuration on disk] ( #configuration-on-disk )
21
21
- [ Common networking configuration] ( #common-networking-configuration )
22
22
- [ Genesis] ( #genesis )
23
- - [ Subnet configuration] ( #subnet-configuration )
24
- - [ Chain configuration] ( #chain-configuration )
23
+ - [ Subnet and Chain configuration] ( #subnet-and-chain-configuration )
25
24
- [ Network env] ( #network-env )
26
25
- [ Node configuration] ( #node-configuration )
27
26
- [ Runtime config] ( #runtime-config )
@@ -216,65 +215,43 @@ HOME
216
215
│ ├── plugins
217
216
│ │ └── ...
218
217
│ └── process.json // Node process details (PID, API URI, staking address)
219
- ├── chains
220
- │ ├── C
221
- │ │ └── config.json // C-Chain config for all nodes
222
- │ └── raZ51bwfepaSaZ1MNSRNYNs3ZPfj...U7pa3
223
- │ └── config.json // Custom chain configuration for all nodes
224
- ├── config.json // Common configuration (including defaults and pre-funded keys)
218
+ ├── config.json // tmpnet configuration for the network
225
219
├── genesis.json // Genesis for all nodes
226
220
├── metrics.txt // Link for metrics and logs collected from the network (see: Monitoring)
227
221
├── network.env // Sets network dir env var to simplify network usage
228
- └── subnets // Directory containing subnet config for both avalanchego and tmpnet
222
+ └── subnets // Directory containing tmpnet subnet configuration
229
223
├── subnet-a.json // tmpnet configuration for subnet-a and its chain(s)
230
- ├── subnet-b.json // tmpnet configuration for subnet-b and its chain(s)
231
- └── 2jRbWtaonb2RP8DEM5DBsd7...RqNs9.json // avalanchego configuration for subnet with ID 2jRbWtao...RqNs9
224
+ └── subnet-b.json // tmpnet configuration for subnet-b and its chain(s)
232
225
```
233
226
234
227
### Common networking configuration
235
228
[ Top] ( #table-of-contents )
236
229
237
230
Network configuration such as default flags (e.g. ` --log-level= ` ),
238
231
runtime defaults (e.g. avalanchego path) and pre-funded private keys
239
- are stored at ` [network-dir]/config.json ` . A given default will only
240
- be applied to a new node on its addition to the network if the node
241
- does not explicitly set a given value .
232
+ are stored at ` [network-dir]/config.json ` . A default for a given flag
233
+ will only be applied to a node if that node does not itself set a
234
+ value for that flag .
242
235
243
236
### Genesis
244
237
[ Top] ( #table-of-contents )
245
238
246
- The genesis file is stored at ` [network-dir]/genesis.json ` and
247
- referenced by default by all nodes in the network. The genesis file
248
- content will be generated with reasonable defaults if not
249
- supplied. Each node in the network can override the default by setting
250
- an explicit value for ` --genesis-file ` or ` --genesis-file-content ` .
239
+ The genesis file is stored at ` [network-dir]/genesis.json ` . The
240
+ genesis file content will be generated with reasonable defaults if
241
+ not supplied. The content of the file is provided to each node via
242
+ the ` --genesis-file-content ` flag if a node does not set a value for
243
+ the flag .
251
244
252
- ### Subnet configuration
245
+ ### Subnet and chain configuration
253
246
[ Top] ( #table-of-contents )
254
247
255
- The subnet configuration for a temporary network is stored at
256
- ` [network-dir]/subnets/[subnet ID].json ` and referenced by all
257
- nodes in the network.
258
-
259
- Each node in the network can override network-level subnet
260
- configuration by setting ` --subnet-config-dir ` to an explicit value
261
- and ensuring that configuration files for all chains exist at
262
- ` [custom-subnet-config-dir]/[subnet ID].json ` .
263
-
264
- ### Chain configuration
265
- [ Top] ( #table-of-contents )
266
-
267
- The chain configuration for a temporary network is stored at
268
- ` [network-dir]/chains/[chain alias or ID]/config.json ` and referenced
269
- by all nodes in the network. The C-Chain config will be generated with
270
- reasonable defaults if not supplied. X-Chain and P-Chain will use
271
- implicit defaults. The configuration for custom chains can be provided
272
- with subnet configuration and will be written to the appropriate path.
273
-
274
- Each node in the network can override network-level chain
275
- configuration by setting ` --chain-config-dir ` to an explicit value and
276
- ensuring that configuration files for all chains exist at
277
- ` [custom-chain-config-dir]/[chain alias or ID]/config.json ` .
248
+ tmpnet configuration for a given subnet and its chain(s) is stored at
249
+ ` [network-dir]/subnets/[subnet name].json ` . Subnet configuration for
250
+ all subnets is provided to each node via the
251
+ ` --subnet-config-content ` flag if a node does not set a value for the
252
+ flag. Chain configuration for all chains is provided to each node via
253
+ the ` --chain-config-content ` flag where a node does not set a value
254
+ for the flag.
278
255
279
256
### Network env
280
257
[ Top] ( #table-of-contents )
0 commit comments