Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

election_statistics rpc documentation #699

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/commands/rpc-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,35 @@ Derive deterministic keypair from **seed** based on **index**

---

### election_statistics
_version 27.0+_

Returns the number of each election type, the maximum and average election age from Active Election Container (AEC).

Values in `max_election_age` and `average_election_age` are in milliseconds.

**Request:**
```json
{
"action": "election_statistics"
}
```
**Response sample:**
```json
{
"normal": "152",
"priority": "1",
"hinted": "0",
"optimistic": "19",
"total": "172",
"aec_utilization_percentage": "3.42",
"max_election_age": "5493",
"average_election_age": "421"
}
```

---

### epoch_upgrade
_enable_control required, version 20.0+_

Expand Down
Loading