Skip to content

Commit

Permalink
warn on stakednodes update fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ben | mrgn committed May 5, 2024
1 parent 97b0a0d commit b00ca4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/staked_nodes_updater_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use std::{
};

use jito_rpc::load_balancer::LoadBalancer;
use log::warn;
use solana_client::client_error;
use solana_sdk::pubkey::Pubkey;
use solana_streamer::streamer::StakedNodes;
Expand Down Expand Up @@ -40,6 +41,9 @@ impl StakedNodesUpdaterService {
) {
let shared = StakedNodes::new(stake_map, staked_nodes_overrides.clone());
*shared_staked_nodes.write().unwrap() = shared;
} else {
warn!("Failed to refresh pk to stake map! Does your RPC support getVoteAccounts?");
sleep(PK_TO_STAKE_REFRESH_DURATION);
}
}
})
Expand Down

0 comments on commit b00ca4b

Please sign in to comment.