Skip to content

Commit

Permalink
retrieveMissingDataColumnsFromPeers: Search only for needed peers.
Browse files Browse the repository at this point in the history
  • Loading branch information
nalepae committed Oct 2, 2024
1 parent 5414ebf commit 268505c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beacon-chain/sync/initial-sync/blocks_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ func (f *blocksFetcher) retrieveMissingDataColumnsFromPeers(
// Reduce blocks count until the total number of elements is less than the batch size.
for missingDataColumnsCount*blocksCount > batchSize {
blocksCount /= 2
lastSlot = firstSlot + primitives.Slot(blocksCount-1)
}

// If no peer is specified, get all connected peers.
Expand Down

0 comments on commit 268505c

Please sign in to comment.