Skip to content

Commit

Permalink
election_statistics documentation (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
RickiNano authored Sep 12, 2024
1 parent c273b7b commit 312652d
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
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

0 comments on commit 312652d

Please sign in to comment.