From 22d6951de59dfbbeceae4f3ddb9952b9e7804e1a Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sat, 7 Dec 2019 00:13:29 -0700 Subject: [PATCH] Revert "getVoteAccounts RPC API no longer returns "idle" vote accounts" This reverts commit 103e40b9689d74ece606385a67d166f55f453823. --- core/src/rpc.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/src/rpc.rs b/core/src/rpc.rs index 439c72b3b1..a9ed2649b2 100644 --- a/core/src/rpc.rs +++ b/core/src/rpc.rs @@ -255,10 +255,6 @@ impl JsonRpcRequestProcessor { last_vote, } }) - .filter(|vote_account_info| { - // Remove vote accounts that have never voted and also have no stake - vote_account_info.last_vote == 0 && vote_account_info.activated_stake == 0 - }) .partition(|vote_account_info| { if bank.slot() >= MAX_LOCKOUT_HISTORY as u64 { vote_account_info.last_vote > bank.slot() - MAX_LOCKOUT_HISTORY as u64