@@ -95,7 +95,7 @@ Example:
95
95
96
96
| Name | Description | Type | Default value |
97
97
| ------------------------------------------- | ------------------------------------------------------------- | ------ | -------------------------------------------- |
98
- | bindMultiAddresses | The bind multi addresses for p2p connections | array | /ip4/0.0.0.0/tcp/14666 <br />/ip6/::/tcp/14666 |
98
+ | bindMultiAddresses | The bind multi addresses for p2p connections | array | /ip4/0.0.0.0/tcp/15600 <br />/ip6/::/tcp/15600 |
99
99
| [ connectionManager] ( #p2p_connectionmanager ) | Configuration for connectionManager | object | |
100
100
| externalMultiAddresses | External reacheable multi addresses advertised to the network | array | |
101
101
| identityPrivateKey | Private key used to derive the node identity (optional) | string | "" |
@@ -120,8 +120,8 @@ Example:
120
120
{
121
121
"p2p" : {
122
122
"bindMultiAddresses" : [
123
- " /ip4/0.0.0.0/tcp/14666 " ,
124
- " /ip6/::/tcp/14666 "
123
+ " /ip4/0.0.0.0/tcp/15600 " ,
124
+ " /ip6/::/tcp/15600 "
125
125
],
126
126
"connectionManager" : {
127
127
"highWatermark" : 10 ,
@@ -225,24 +225,40 @@ Example:
225
225
226
226
## <a id =" debugapi " ></a > 6. DebugAPI
227
227
228
- | Name | Description | Type | Default value |
229
- | ---------------- | ---------------------------------------------------------- | ------- | --------------- |
230
- | enabled | Whether the DebugAPI component is enabled | boolean | true |
231
- | path | The path to the database folder | string | "testnet/debug" |
232
- | maxOpenDBs | Maximum number of open database instances | int | 2 |
233
- | pruningThreshold | How many epochs should be retained | uint | 1 |
234
- | dbGranularity | How many slots should be contained in a single DB instance | int | 100 |
228
+ | Name | Description | Type | Default value |
229
+ | ------------------ | ----------------------------------------- | ------- | ------------- |
230
+ | enabled | Whether the DebugAPI component is enabled | boolean | true |
231
+ | [ db] ( #debugapi_db ) | Configuration for db | object | |
232
+
233
+ ### <a id =" debugapi_db " ></a > Db
234
+
235
+ | Name | Description | Type | Default value |
236
+ | ------------------------------- | ---------------------------------------------------------- | ------ | --------------- |
237
+ | path | The path to the database folder | string | "testnet/debug" |
238
+ | maxOpenDBs | Maximum number of open database instances | int | 2 |
239
+ | granularity | How many slots should be contained in a single DB instance | int | 100 |
240
+ | [ pruning] ( #debugapi_db_pruning ) | Configuration for pruning | object | |
241
+
242
+ ### <a id =" debugapi_db_pruning " ></a > Pruning
243
+
244
+ | Name | Description | Type | Default value |
245
+ | --------- | ---------------------------------- | ---- | ------------- |
246
+ | threshold | How many epochs should be retained | uint | 1 |
235
247
236
248
Example:
237
249
238
250
``` json
239
251
{
240
252
"debugAPI" : {
241
253
"enabled" : true ,
242
- "path" : " testnet/debug" ,
243
- "maxOpenDBs" : 2 ,
244
- "pruningThreshold" : 1 ,
245
- "dbGranularity" : 100
254
+ "db" : {
255
+ "path" : " testnet/debug" ,
256
+ "maxOpenDBs" : 2 ,
257
+ "granularity" : 100 ,
258
+ "pruning" : {
259
+ "threshold" : 1
260
+ }
261
+ }
246
262
}
247
263
}
248
264
```
@@ -263,17 +279,23 @@ Example:
263
279
}
264
280
```
265
281
266
- ## <a id =" database " ></a > 8. Database
282
+ ## <a id =" db " ></a > 8. Db
283
+
284
+ | Name | Description | Type | Default value |
285
+ | ---------------------- | ----------------------------------------- | ------ | ------------------ |
286
+ | engine | The used database engine (rocksdb/mapdb) | string | "rocksdb" |
287
+ | path | The path to the database folder | string | "testnet/database" |
288
+ | maxOpenDBs | Maximum number of open database instances | int | 5 |
289
+ | [ pruning] ( #db_pruning ) | Configuration for pruning | object | |
290
+
291
+ ### <a id =" db_pruning " ></a > Pruning
267
292
268
- | Name | Description | Type | Default value |
269
- | ---------------------- | -------------------------------------------- | ------ | ------------------ |
270
- | engine | The used database engine (rocksdb/mapdb) | string | "rocksdb" |
271
- | path | The path to the database folder | string | "testnet/database" |
272
- | maxOpenDBs | Maximum number of open database instances | int | 5 |
273
- | pruningThreshold | How many finalized epochs should be retained | uint | 30 |
274
- | [ size] ( #database_size ) | Configuration for size | object | |
293
+ | Name | Description | Type | Default value |
294
+ | ------------------------ | -------------------------------------------- | ------ | ------------- |
295
+ | threshold | How many finalized epochs should be retained | uint | 30 |
296
+ | [ size] ( #db_pruning_size ) | Configuration for size | object | |
275
297
276
- ### <a id =" database_size " ></a > Size
298
+ ### <a id =" db_pruning_size " ></a > Size
277
299
278
300
| Name | Description | Type | Default value |
279
301
| ------------------- | --------------------------------------------------------------------------------- | ------- | ------------- |
@@ -286,16 +308,18 @@ Example:
286
308
287
309
``` json
288
310
{
289
- "database " : {
311
+ "db " : {
290
312
"engine" : " rocksdb" ,
291
313
"path" : " testnet/database" ,
292
314
"maxOpenDBs" : 5 ,
293
- "pruningThreshold" : 30 ,
294
- "size" : {
295
- "enabled" : true ,
296
- "targetSize" : " 30GB" ,
297
- "reductionPercentage" : 10 ,
298
- "cooldownTime" : " 5m"
315
+ "pruning" : {
316
+ "threshold" : 30 ,
317
+ "size" : {
318
+ "enabled" : true ,
319
+ "targetSize" : " 30GB" ,
320
+ "reductionPercentage" : 10 ,
321
+ "cooldownTime" : " 5m"
322
+ }
299
323
}
300
324
}
301
325
}
0 commit comments