Skip to content

Commit

Permalink
Fix lint and logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmygchen committed Jun 27, 2024
1 parent 05608b0 commit 9f20029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon_node/network/src/sync/range_sync/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ impl<T: BeaconChainTypes> SyncingChain<T> {
self.request_batches(network)?;
}
}
} else if self.good_peers_on_custody_subnets(self.processing_target, network) {
} else if !self.good_peers_on_custody_subnets(self.processing_target, network) {
// If there's no good custody peers for this epoch, batch won't be created
return Ok(KeepChain)
return Ok(KeepChain);
} else {
return Err(RemoveChain::WrongChainState(format!(
"Batch not found for current processing target {}",
Expand Down

0 comments on commit 9f20029

Please sign in to comment.