github.com/TrueBlocks/trueblocks-core/src/apps/chifra@v0.0.0-20241022031540-b362680128f7/internal/chunks/handle_check_version.go (about) 1 // Copyright 2021 The TrueBlocks Authors. All rights reserved. 2 // Use of this source code is governed by a license that can 3 // be found in the LICENSE file. 4 5 package chunksPkg 6 7 import ( 8 "github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/base" 9 "github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/types" 10 ) 11 12 // CheckVersion reads the header of each chunk on disc looking for the Magic number and 13 // the hash of the spec version for expected values. 14 func (opts *ChunksOptions) CheckVersion(fileNames []string, blockNums []base.Blknum, report *types.ReportCheck) error { 15 for _, fileName := range fileNames { 16 opts.checkIndexChunkInternal(fileName, true /* checkVersion */, report) 17 // opts.checkBloomInternal(testId, fileName, report) 18 } 19 return nil 20 }