Add get_max_retransmit_slot/get_max_shred_insert_slot to RpcClient

This commit is contained in:
Michael Vines
2021-03-30 14:22:41 -07:00
committed by mergify[bot]
parent c70674a616
commit 2a1639836a
2 changed files with 12 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ pub enum RpcRequest {
GetInflationRate,
GetLargestAccounts,
GetLeaderSchedule,
GetMaxRetransmitSlot,
GetMaxShredInsertSlot,
GetMinimumBalanceForRentExemption,
GetMultipleAccounts,
GetProgramAccounts,
@@ -91,6 +93,8 @@ impl fmt::Display for RpcRequest {
RpcRequest::GetInflationRate => "getInflationRate",
RpcRequest::GetLargestAccounts => "getLargestAccounts",
RpcRequest::GetLeaderSchedule => "getLeaderSchedule",
RpcRequest::GetMaxRetransmitSlot => "getMaxRetransmitSlot",
RpcRequest::GetMaxShredInsertSlot => "getMaxShredInsertSlot",
RpcRequest::GetMinimumBalanceForRentExemption => "getMinimumBalanceForRentExemption",
RpcRequest::GetMultipleAccounts => "getMultipleAccounts",
RpcRequest::GetProgramAccounts => "getProgramAccounts",