add validator list threshold

This commit is contained in:
Oliver Eggert
2025-03-03 14:03:38 -08:00
parent 2371af7ad8
commit c72b8daf72
3 changed files with 49 additions and 4 deletions

View File

@@ -0,0 +1,40 @@
---
seo:
description: Set the minimum number of UNL publisher lists a validator must be on for your server to use it.
labels:
- Core Server
- Blockchain
---
# Configure Validator List Threshold
A `rippled` server uses validators that meet a minimum intersection threshold between UNL publishers. This means a server only uses validators that exist on a number of validator lists, as defined by the server owner. {% badge href="https://github.com/XRPLF/rippled/releases/tag/2.4.0" %}New in: rippled 2.4.0{% /badge %}
By default, the minimum threshold is calculated as follows:
- floor(`validator_list_keys` / 2) + 1
- If there are only 1 or 2 `validator_list_keys`, the threshold is `1`.
## Modify the Validators File
1. Edit the `validators.txt` file. The recommended installation places this file at:
```
/etc/opt/ripple/validators.txt
```
2. Add the following stanza and a valid threshold number.
```
[validator_list_threshold]
0
```
Be sure to save the changes and restart your server.
{% admonition type="info" name="Note" %}If this value is `0` or isn't set, the threshold will be calculated using the default method. The value also can't be larger than the number of `validator_list_keys`.{% /admonition %}
## See Also
- [validators method][]
{% raw-partial file="/docs/_snippets/common-links.md" /%}

View File

@@ -186,7 +186,8 @@ An example of a successful response:
"validator_list": {
"count": 1,
"expiration": "2022-Jun-01 00:00:00.000000000 UTC",
"status": "active"
"status": "active",
"validator_list_threshold": 1
}
},
"status": "success",
@@ -327,7 +328,8 @@ An example of a successful response:
"validator_list": {
"count": 1,
"expiration": "2022-Jun-01 00:00:00.000000000 UTC",
"status": "active"
"status": "active",
"validator_list_threshold": 1
}
}
}
@@ -467,7 +469,8 @@ Connecting to 127.0.0.1:5005
"validator_list": {
"count": 1,
"expiration": "2022-Jun-01 00:00:00.000000000 UTC",
"status": "active"
"status": "active",
"validator_list_threshold": 1
}
}
}
@@ -485,7 +488,8 @@ The response follows the [standard format][], with a successful result containin
| `signing_keys` | Object | Mapping from master public key to current ephemeral public key for all currently-trusted validators. Excludes validators that don't use an ephemeral signing key. |
| `trusted_validator_keys` | Array | Array of master public keys of all currently trusted validators. |
| `validation_quorum` | Number | Minimum number of trusted validations required to validate a ledger version. Some circumstances may cause the server to require more validations. |
| `validator_list_expires` | String | The human readable time when the current validator list expires. There are two special cases: the string `unknown` if the server has not yet loaded a published validator list, or the string `never` if the server uses a static validator list. |
| `validator_list.expiration` | String | The human readable time when the current validator list expires. There are two special cases: the string `unknown` if the server has not yet loaded a published validator list, or the string `never` if the server uses a static validator list. |
| `validator_list.validator_list_threshold` | Number | The threshold number of UNL publisher lists a validator must be one for the server to use it. {% badge href="https://github.com/XRPLF/rippled/releases/tag/2.4.0" %}New in: rippled 2.4.0{% /badge %} |
Each member of the `publisher_lists` array is a **Publisher List** object with the following fields: