Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Oct 5, 2024
1 parent 629e0f6 commit 802dbab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storer/sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ func (db *DB) ReserveSample(

// If the node has doubled their capacity by some factor, sampling process need to only pertain to the
// chunks of the selected neighborhood as determined by the anchor and the "network" radius and NOT the whole reseve.
// The sampling must select chunk with proximity greater than or equal to the regular network radius.
// The regular network storage radius of the network is the sum of the local radius and the doubling factor.
// For example, the regular radius is 11, but the local node has a doubling factor of 3, so the local radius will eventually drop to 8.
// So the sampling must only consider chunks with proximity 11 to the anchor.
neighborhoodProximity := storageRadius + uint8(db.reserveOptions.capacityDoubling)

// Phase 1: Iterate chunk addresses
Expand Down

0 comments on commit 802dbab

Please sign in to comment.