Update getEpochVoteAccounts to getVoteAccounts (#5543)

* Rework getEpochVoteAccounts into getVoteAccounts

* Update client apis

* Update docs

* Review comments
This commit is contained in:
Tyera Eulberg
2019-08-16 17:02:19 -06:00
committed by GitHub
parent 84304cb0fc
commit 8d105042ea
4 changed files with 79 additions and 46 deletions

View File

@ -9,7 +9,6 @@ pub enum RpcRequest {
GetAccountInfo,
GetBalance,
GetClusterNodes,
GetEpochVoteAccounts,
GetNumBlocksSinceSignatureConfirmation,
GetProgramAccounts,
GetRecentBlockhash,
@ -22,6 +21,7 @@ pub enum RpcRequest {
GetStoragePubkeysForSlot,
GetTransactionCount,
GetVersion,
GetVoteAccounts,
RegisterNode,
RequestAirdrop,
SendTransaction,
@ -38,7 +38,6 @@ impl RpcRequest {
RpcRequest::GetAccountInfo => "getAccountInfo",
RpcRequest::GetBalance => "getBalance",
RpcRequest::GetClusterNodes => "getClusterNodes",
RpcRequest::GetEpochVoteAccounts => "getEpochVoteAccounts",
RpcRequest::GetNumBlocksSinceSignatureConfirmation => {
"getNumBlocksSinceSignatureConfirmation"
}
@ -53,6 +52,7 @@ impl RpcRequest {
RpcRequest::GetStoragePubkeysForSlot => "getStoragePubkeysForSlot",
RpcRequest::GetTransactionCount => "getTransactionCount",
RpcRequest::GetVersion => "getVersion",
RpcRequest::GetVoteAccounts => "getVoteAccounts",
RpcRequest::RegisterNode => "registerNode",
RpcRequest::RequestAirdrop => "requestAirdrop",
RpcRequest::SendTransaction => "sendTransaction",