Speed up getLeaderSchedule RPC call by reducing pubkey duplication (#7556)

automerge
This commit is contained in:
mergify[bot]
2019-12-18 15:45:20 -08:00
committed by Grimes
parent 8a879a52ef
commit 5fbe5aa22d
4 changed files with 37 additions and 18 deletions

View File

@@ -382,7 +382,9 @@ Returns the leader schedule for an epoch
#### Results:
The result field will be an array of leader public keys \(as base-58 encoded strings\) for each slot in the epoch
The result field will be a dictionary of leader public keys \(as base-58 encoded
strings\) and their corresponding leader slot indices as values (indices are to
the first slot in the requested epoch)
#### Example:
@@ -391,7 +393,7 @@ The result field will be an array of leader public keys \(as base-58 encoded str
curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getLeaderSchedule"}' http://localhost:8899
// Result
{"jsonrpc":"2.0","result":[...],"id":1}
{"jsonrpc":"2.0","result":{"4Qkev8aNZcqFNSRhQzwyLMFSsi94jHqE8WNVTJzTP99F":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63]},"id":1}
```
### getMinimumBalanceForRentExemption