mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-03-06 15:17:36 +00:00
blockfetcher: add check on IndexFileSize of index files
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
This commit is contained in:
parent
14c980a685
commit
718ff9aa0a
1 changed files with 1 additions and 0 deletions
|
@ -307,6 +307,7 @@ func (bfs *Service) fetchOIDsFromIndexFiles() error {
|
|||
prm := client.PrmObjectSearch{}
|
||||
filters := object.NewSearchFilters()
|
||||
filters.AddFilter(bfs.cfg.IndexFileAttribute, fmt.Sprintf("%d", startIndex), object.MatchStringEqual)
|
||||
filters.AddFilter("IndexSize", fmt.Sprintf("%d", bfs.cfg.IndexFileSize), object.MatchStringEqual)
|
||||
prm.SetFilters(filters)
|
||||
|
||||
ctx, cancel := context.WithTimeout(bfs.ctx, bfs.cfg.Timeout)
|
||||
|
|
Loading…
Add table
Reference in a new issue