Skip to content

Commit

Permalink
blockfetcher: adjust index file numeration from 0
Browse files Browse the repository at this point in the history
Signed-off-by: Ekaterina Pavlova <[email protected]>
  • Loading branch information
AliceInHunterland committed Oct 15, 2024
1 parent 23560bd commit 2188b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/blockfetcher/blockfetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (bfs *Service) blockQueuer() {
// fetchOIDsFromIndexFiles fetches block OIDs from NeoFS by searching index files first.
func (bfs *Service) fetchOIDsFromIndexFiles() error {
h := bfs.chain.BlockHeight()
startIndex := h/bfs.cfg.IndexFileSize + 1
startIndex := h / bfs.cfg.IndexFileSize
skip := h % bfs.cfg.IndexFileSize

for {
Expand Down

0 comments on commit 2188b27

Please sign in to comment.