Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
election_statistics documentation
Browse files Browse the repository at this point in the history
RickiNano committed Sep 10, 2024
1 parent 03fbc86 commit 7482099
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/commands/rpc-protocol.md
Original file line number Diff line number Diff line change
@@ -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+_

0 comments on commit 7482099

Please sign in to comment.