[ja] configure-amendment-voting

This commit is contained in:
develoQ
2022-03-05 23:12:37 +09:00
parent 6017cea5d9
commit 664f170bdf
2 changed files with 77 additions and 1 deletions

View File

@@ -0,0 +1,74 @@
---
html: configure-amendment-voting.html
parent: configure-rippled.html
blurb: プロトコル修正に伴うサーバーの投票を設定する。
labels:
- コアサーバー
- ブロックチェーン
---
# 修正投票機能の設定
バリデーターとして設定されたサーバーは、[feature method][]を使ってXRP Ledgerプロトコルの[修正案(amendments)](amendments.html)に投票することができます。(この方法には[管理者アクセス](get-started-using-http-websocket-apis.html#admin-access)が必要です).
例えば、「SHAMapV2」修正案に反対票を投じるには、以下のコマンドを実行します。
<!-- MULTICODE_BLOCK_START -->
*WebSocket*
```json
{
"id": "any_id_here",
"command": "feature",
"feature": "SHAMapV2",
"vetoed": true
}
```
*JSON-RPC*
```json
{
"method": "feature",
"params": [
{
"feature": "SHAMapV2",
"vetoed": true
}
]
}
```
*Commandline*
```sh
rippled feature SHAMapV2 reject
```
<!-- MULTICODE_BLOCK_END -->
**注記:** 修正案の省略名は大文字と小文字が区別されます。また、修正案のIDを16進数で指定することもできますが、この場合は大文字と小文字が区別されません。
## 設定ファイルを使用する
もし、修正票の設定に設定ファイルを使いたい場合は、`[rpc_startup]` 節に行を追加して、起動時に各明示票のために自動的にコマンドを実行させることができます。例えば
```
[rpc_startup]
{ "command": "feature", "feature": "SHAMapV2", "vetoed": true }
```
変更を有効にするには、必ずサーバーを再起動してください。
**注意事項:** Any commands in the `[rpc_startup]` stanza run each time the server starts up, which can override voting settings you configured while the server was running.
## 関連項目
- [Amendment](amendments.html)
- [既知のAmendment](known-amendments.html)
- [feature メソッド][]
<!--{# common link defs #}-->
{% include '_snippets/rippled-api-links.md' %}
{% include '_snippets/tx-type-links.md' %}
{% include '_snippets/rippled_versions.md' %}