Skip to content

Commit

Permalink
Fix bug of init_from_beacon_node (#4613)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu committed Aug 14, 2023
1 parent e92359b commit 842b422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validator_client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,8 @@ async fn init_from_beacon_node<E: EthSpec>(
let num_available = beacon_nodes.num_available().await;
let num_total = beacon_nodes.num_total();

let proposer_available = beacon_nodes.num_available().await;
let proposer_total = beacon_nodes.num_total();
let proposer_available = proposer_nodes.num_available().await;
let proposer_total = proposer_nodes.num_total();

if proposer_total > 0 && proposer_available == 0 {
warn!(
Expand Down

0 comments on commit 842b422

Please sign in to comment.