GetLeaderSchedule can now return a schedule for arbitrary epochs

This commit is contained in:
Michael Vines
2019-12-17 16:26:31 -07:00
parent 629a4b5bf8
commit 434cde179f
4 changed files with 97 additions and 5 deletions

View File

@ -121,6 +121,7 @@ pub enum RpcRequest {
GetEpochSchedule,
GetGenesisHash,
GetInflation,
GetLeaderSchedule,
GetNumBlocksSinceSignatureConfirmation,
GetProgramAccounts,
GetRecentBlockhash,
@ -161,6 +162,7 @@ impl RpcRequest {
RpcRequest::GetEpochSchedule => "getEpochSchedule",
RpcRequest::GetGenesisHash => "getGenesisHash",
RpcRequest::GetInflation => "getInflation",
RpcRequest::GetLeaderSchedule => "getLeaderSchedule",
RpcRequest::GetNumBlocksSinceSignatureConfirmation => {
"getNumBlocksSinceSignatureConfirmation"
}