Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Update config; add documentation (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelchalon authored and tomusdrw committed Apr 9, 2018
1 parent d6f2d42 commit ab8529b
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 8 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -3,3 +3,7 @@
[![Build Status](https://travis-ci.org/paritytech/parity-config-generator.svg?branch=master)](https://travis-ci.org/paritytech/parity-config-generator)

See demo at: [Parity Config Generator](https://paritytech.github.io/parity-config-generator)

## Development

To update the list of fields, run `npm run generate-data`. This will parse the command-line options and configuration fields [from the parity repo](https://github.com/paritytech/parity/blob/master/parity/cli/mod.rs), apply the manual overwrites and extra information of `src/data.extra.json` and save the result into `src/data.compiled.json`, which is the file used by Parity Config Generator.
72 changes: 64 additions & 8 deletions src/data.compiled.json
Expand Up @@ -112,6 +112,18 @@
],
"simple": true
},
"auto_update_delay": {
"name": "Auto update delay",
"type": "number",
"description": "Specify the maximum number of blocks used for randomly delaying updates.",
"default": 100
},
"auto_update_check_frequency": {
"name": "Auto update check frequency",
"type": "number",
"description": "Specify the number of blocks between each auto-update check.",
"default": 20
},
"release_track": {
"name": "Auto Update Release Track",
"type": "string",
Expand Down Expand Up @@ -177,19 +189,26 @@
"default": false,
"simple": true
},
"light": {
"name": "Light",
"type": "bool",
"description": "Experimental: run in light client mode. Light clients synchronize a bare minimum of data and fetch necessary data on-demand from the network. Much lower in storage, potentially higher in bandwidth. Has no effect with subcommands.",
"default": false
},
"no_hardcoded_sync": {
"name": "No hardcoded sync",
"type": "bool",
"description": "By default, if there is no existing database the light client will automatically jump to a block hardcoded in the chain's specifications. This disables this feature.",
"default": false,
"condition": "settings.parity.light"
},
"section": "Parity",
"public_node": {
"name": "Public node",
"type": "bool",
"description": "Start Parity as a public web server. Account storage and transaction signing will be delegated to the UI.",
"default": false
},
"light": {
"name": "Light",
"type": "bool",
"description": "Experimental: run in light client mode. Light clients synchronize a bare minimum of data and fetch necessary data on-demand from the network. Much lower in storage, potentially higher in bandwidth. Has no effect with subcommands.",
"default": false
},
"description": "Basic parameters regarding Parity operation."
},
"account": {
Expand Down Expand Up @@ -289,6 +308,13 @@
"default": true,
"description": "Parity will sync by downloading latest state first. Node will be operational in couple minutes."
},
"warp_barrier": {
"name": "Warp barrier",
"type": "number",
"description": "When warp enabled never attempt regular sync before warping to block NUM.",
"default": null,
"condition": "settings.network.warp"
},
"port": {
"name": "Port",
"type": "number",
Expand Down Expand Up @@ -570,6 +596,12 @@
]
},
"section": "WebSockets (since 1.7)",
"max_connections": {
"name": "Max connections",
"type": "number",
"description": "Maximal number of allowed concurrent WS connections.",
"default": 100
},
"description": "Expose JSON-RPC APIs over WebSockets."
},
"ipc": {
Expand Down Expand Up @@ -690,7 +722,31 @@
"service_contract": {
"name": "Service contract",
"type": "string",
"description": "Secret Store Service contract address source: none, registry (contract address is read from registry) or address.",
"description": "Secret Store Service contract address source: none, registry (contract address is read from secretstore_service entry in registry) or address.",
"default": "none"
},
"service_contract_srv_gen": {
"name": "Service contract srv gen",
"type": "string",
"description": "Secret Store Service server key generation contract address source: none, registry (contract address is read from secretstore_service_srv_gen entry in registry) or address.",
"default": "none"
},
"service_contract_srv_retr": {
"name": "Service contract srv retr",
"type": "string",
"description": "Secret Store Service server key retrieval contract address source: none, registry (contract address is read from secretstore_service_srv_retr entry in registry) or address.",
"default": "none"
},
"service_contract_doc_store": {
"name": "Service contract doc store",
"type": "string",
"description": "Secret Store Service document key store contract address source: none, registry (contract address is read from secretstore_service_doc_store entry in registry) or address.",
"default": "none"
},
"service_contract_doc_sretr": {
"name": "Service contract doc sretr",
"type": "string",
"description": "Secret Store Service document key shadow retrieval contract address source: none, registry (contract address is read from secretstore_service_doc_sretr entry in registry) or address.",
"default": "none"
},
"self_secret": {
Expand Down Expand Up @@ -1271,4 +1327,4 @@
},
"description": "Whisper"
}
}
}
11 changes: 11 additions & 0 deletions src/data.extra.json
Expand Up @@ -104,6 +104,8 @@
],
"simple": true
},
"auto_update_delay": {},
"auto_update_check_frequency": {},
"release_track": {
"name": "Auto Update Release Track",
"description": {
Expand Down Expand Up @@ -155,6 +157,10 @@
},
"no_persistent_txqueue": {
"simple": true
},
"light": {},
"no_hardcoded_sync": {
"condition": "settings.parity.light"
}
},
"account": {
Expand Down Expand Up @@ -214,20 +220,25 @@
"name": "Warp Sync",
"description": "Parity will sync by downloading latest state first. Node will be operational in couple minutes."
},
"warp_barrier": {
"condition": "settings.network.warp"
},
"port": {
"name": "Port",
"description": "Parity will listen for connections on port {}."
},
"min_peers": {
"name": "Min Peers",
"description": "Parity will try to maintain connection to at least {} peers.",
"default": 25,
"min": 0,
"max": 100000,
"simple": true
},
"max_peers": {
"name": "Max Peers",
"description": "Parity will maintain at most {} peers.",
"default": 50,
"min": 0,
"max": 100000,
"simple": true
Expand Down

0 comments on commit ab8529b

Please sign in to comment.