Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bshumygora committed Sep 26, 2022
1 parent 601ccc7 commit 22534fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stake-pool/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2688,7 +2688,12 @@ fn command_update(

for stake_key in &stake_accounts {
if *stake_key != stake_pool.reserve_stake {
let stake_state = get_stake_state(&config.rpc_client, stake_key)?;
let stake_state = get_stake_state(&config.rpc_client, stake_key);
if let Err(e) = stake_state {
println!("Ignoring: can't get stake state for {} due to the following error: {}", stake_key, e);
continue;
}
let stake_state = stake_state.unwrap();
match stake_state {
stake::state::StakeState::Uninitialized
| stake::state::StakeState::RewardsPool => {
Expand Down

0 comments on commit 22534fe

Please sign in to comment.