You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/docs/backend/config.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,8 @@ An example config may look something like:
42
42
43
43
-`dryRun`: Boolean (true/false). If set to true, the Nominator accounts that are added will calculate what a nomination would look like (how many and which validators), but not craft or submit any transactions. No nominations will be done when this flag is set. In the `nominate` function of the `Nominator` class, the `dryRun` flag is checked, and if it is set to true, the function will return after logging the validators it would nominate without doing anything. This flag is optional and set to `false` by default.
44
44
-`networkPrefix`: Integer. Defines the network prefix. For Kusama, this is `2`, and for Polkadot, this is `0`. It can be set to `3` for running a local test network, although this isn't used much anymore. **This flag is required for `core` and `worker` services.**
45
-
-`apiEndpoints`: Array of strings. Lists the RPC endpoints for the chain. When given a list of multiple, it will pick one at random to create a websocket connection to - this single connection is used throughout the entire service for any queries or submitting transactions. **This is required for `core` and `worker` services.
45
+
-`apiEndpoints`: Array of strings. Lists the RPC endpoints for the chain. When given a list of multiple, it will pick one at random to create a websocket connection to - this single connection is used throughout the entire service for any queries or submitting transactions. **This is required for `core` and `worker` services.**
46
+
-`apiPeopleEndpoints`: Optional array of strings. Lists the RPC endpoints for People parachain, if it's enabled on the network.
46
47
-`bootstrap`: Boolean. An **optional** flag that can be set to `true` to enable the bootstrap process. This can be used when running a instance of the backend and would query the main Kusama or Polkadot instances at the api endpoints specified below to populate the db with non-deterministic values like `rank` or `discoveredAt`. _This isn't currently used anywhere yet_
47
48
-`kusamaBootstrapEndpoint`: String. URL for the Kusama bootstrap endpoint. **optional**. _This isn't currently used anywhere yet_.
48
49
-`polkadotBootstrapEndpoint`: String. URL for the Polkadot bootstrap endpoint. **optional**. _This isn't currently used anywhere yet_.
@@ -56,9 +57,10 @@ An example config may look something like:
56
57
"constraints": {
57
58
"skipConnectionTime": true,
58
59
"skipIdentity": false,
59
-
"skipClientUpgrade": false,
60
60
"skipUnclaimed": false,
61
-
"forceClientVersion": "v0.9.30",
61
+
"clientUpgrade": {
62
+
"skip": false
63
+
},
62
64
"minSelfStake": 10000000000000,
63
65
"commission": 150000000,
64
66
"unclaimedEraThreshold": 4
@@ -69,9 +71,9 @@ The `constraints` section defines validity constraint parameters for validators,
69
71
70
72
-`skipConnectionTime`: Boolean. Skips checking the 7 day required connection time if set to true. __optional__, defaults to `false`.
71
73
-`skipIdentity`: Boolean. Skips the check for a verified identity. __optional__, defaults to `false`.
72
-
-`skipClientUpgrade`: Boolean. Skips client version upgrade check. __optional__, defaults to `false`.
73
74
-`skipUnclaimed`: Boolean. Skips the check for unclaimed rewards. __optional__, defaults to `false`.
74
-
-`forceClientVersion`: String. Specific client version to be enforced. __optional__, if this is set, it will allow versions higher than what is specified.
75
+
-`clientUpgrade.skip`: Boolean. Skips client version upgrade check. __optional__, defaults to `false`.
76
+
-`clientUpgrade.forceVersion`: String. Specific client version to be enforced. __optional__, if this is set, it will allow versions >= than what is specified.
75
77
-`minSelfStake`: Integer. Minimum self-stake required. **required**. This number needs to be specified in `Plancks` (1 DOT = 10^10 Plancks, 1 KSM = 10^12 Plancks).
76
78
-`commission`: Integer. Max commission rate. **required**. This number needs to be specified in chain units that have 6 decimal places - for example `150000000` corresponds to 15% commission.
77
79
-`unclaimedEraThreshold`: Integer. Threshold for unclaimed eras. **required**. A validator having pending rewards for past eras longer than this threshold will be deemed invalid. This gets skipped if `skipUnclaimed` is set to `true`. This number is speciefied as number of eras, so `4` for example means validators are invalid if they have pending rewards older than 4 eras ago.
@@ -459,9 +461,10 @@ An example `core` config run as microservices may look something like:
459
461
"constraints": {
460
462
"skipConnectionTime": true,
461
463
"skipIdentity": false,
462
-
"skipClientUpgrade": false,
463
464
"skipUnclaimed": false,
464
-
"forceClientVersion": "v0.9.30",
465
+
"clientUpgrade": {
466
+
"skip": false
467
+
},
465
468
"minSelfStake": 10000000000000,
466
469
"commission": 150000000,
467
470
"unclaimedEraThreshold": 4
@@ -645,4 +648,4 @@ An example Worker config run as microservices may look something like:
0 commit comments