This commit is contained in:
GoodDaisy
2023-10-19 22:05:15 +00:00
parent c6583bb5fa
commit 90f78d141f
12 changed files with 16 additions and 16 deletions

View File

@@ -280,7 +280,7 @@ impl<T: BeaconChainTypes, C: BlockStorage> ChainCollection<T, C> {
old_id = Some(Some(syncing_id));
} else {
// chains have the same number of peers, pick the currently syncing
// chain to avoid unnecesary switchings and try to advance it
// chain to avoid unnecessary switchings and try to advance it
new_id = syncing_id;
old_id = Some(None);
}

View File

@@ -464,7 +464,7 @@ mod tests {
log: slog::Logger,
/// To check what does sync send to the beacon processor.
beacon_processor_rx: mpsc::Receiver<BeaconWorkEvent<E>>,
/// To set up different scenarios where sync is told about known/unkown blocks.
/// To set up different scenarios where sync is told about known/unknown blocks.
chain: Arc<FakeStorage>,
/// Needed by range to handle communication with the network.
cx: SyncNetworkContext<TestBeaconChainType>,