Skip to content

Commit

Permalink
Add check to cover a case where batch is not processed while waiting …
Browse files Browse the repository at this point in the history
…for custody peers to become available.
  • Loading branch information
jimmygchen committed Jun 27, 2024
1 parent 9f82497 commit 0d97026
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions beacon_node/network/src/sync/range_sync/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ impl<T: BeaconChainTypes> SyncingChain<T> {
self.request_batches(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)
} else {
return Err(RemoveChain::WrongChainState(format!(
"Batch not found for current processing target {}",
Expand Down

0 comments on commit 0d97026

Please sign in to comment.