From 0a0d31e5fbe36d75f47398b8f4fdff23b9854408 Mon Sep 17 00:00:00 2001 From: steviez Date: Thu, 22 Sep 2022 14:59:31 -0500 Subject: [PATCH] Add missing rootSlot documentation (#27709) --- docs/src/developing/clients/jsonrpc-api.md | 1 + rpc-client-api/src/response.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/developing/clients/jsonrpc-api.md b/docs/src/developing/clients/jsonrpc-api.md index 3299300c4..945d19c1b 100644 --- a/docs/src/developing/clients/jsonrpc-api.md +++ b/docs/src/developing/clients/jsonrpc-api.md @@ -3266,6 +3266,7 @@ each containing an array of JSON objects with the following sub fields: - `commission: `, percentage (0-100) of rewards payout owed to the vote account - `lastVote: ` - Most recent slot voted on by this vote account - `epochCredits: ` - History of how many credits earned by the end of each epoch, as an array of arrays containing: `[epoch, credits, previousCredits]` +- `rootSlot: ` - Current root slot for this vote account #### Example: diff --git a/rpc-client-api/src/response.rs b/rpc-client-api/src/response.rs index dee39046b..2e601b7d2 100644 --- a/rpc-client-api/src/response.rs +++ b/rpc-client-api/src/response.rs @@ -381,7 +381,7 @@ pub struct RpcVoteAccountInfo { /// Most recent slot voted on by this vote account (0 if no votes exist) pub last_vote: u64, - /// Current root slot for this vote account (0 if not root slot exists) + /// Current root slot for this vote account (0 if no root slot exists) pub root_slot: Slot, }