Skip to content

Commit

Permalink
Demote downloader hash warnings (#9761)
Browse files Browse the repository at this point in the history
Cherry pick PR #9757 into the release

---------

Co-authored-by: Mark Holt <135143369+mh0lt@users.noreply.github.com>
  • Loading branch information
yperbasis and mh0lt authored Mar 19, 2024
1 parent bc2828b commit 0f0a445
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions erigon-lib/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ func initSnapshotLock(ctx context.Context, cfg *downloadercfg.Cfg, db kv.RoDB, s
if hash := hex.EncodeToString(hashBytes); preverified.Hash == hash {
downloadMap.Set(fileInfo.Name(), preverified)
} else {
logger.Warn("[downloader] local file hash does not match known", "file", fileInfo.Name(), "local", hash, "known", preverified.Hash)
logger.Debug("[downloader] local file hash does not match known", "file", fileInfo.Name(), "local", hash, "known", preverified.Hash)
// TODO: check if it has an index - if not use the known hash and delete the file
downloadMap.Set(fileInfo.Name(), snapcfg.PreverifiedItem{Name: fileInfo.Name(), Hash: hash})
}
Expand Down Expand Up @@ -461,7 +461,7 @@ func initSnapshotLock(ctx context.Context, cfg *downloadercfg.Cfg, db kv.RoDB, s
if hash := hex.EncodeToString(hashBytes); preverified.Hash == hash {
downloadMap.Set(preverified.Name, preverified)
} else {
logger.Warn("[downloader] local file hash does not match known", "file", fileInfo.Name(), "local", hash, "known", preverified.Hash)
logger.Debug("[downloader] local file hash does not match known", "file", fileInfo.Name(), "local", hash, "known", preverified.Hash)
// TODO: check if it has an index - if not use the known hash and delete the file
downloadMap.Set(fileInfo.Name(), snapcfg.PreverifiedItem{Name: fileInfo.Name(), Hash: hash})
}
Expand Down Expand Up @@ -490,7 +490,7 @@ func initSnapshotLock(ctx context.Context, cfg *downloadercfg.Cfg, db kv.RoDB, s
if hash := hex.EncodeToString(hashBytes); preverified.Hash == hash {
downloadMap.Set(preverified.Name, preverified)
} else {
logger.Warn("[downloader] local file hash does not match known", "file", fileInfo.Name(), "local", hash, "known", preverified.Hash)
logger.Debug("[downloader] local file hash does not match known", "file", fileInfo.Name(), "local", hash, "known", preverified.Hash)
// TODO: check if it has an index - if not use the known hash and delete the file
downloadMap.Set(fileInfo.Name(), snapcfg.PreverifiedItem{Name: fileInfo.Name(), Hash: hash})
}
Expand Down
8 changes: 4 additions & 4 deletions params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ var (

// see https://calver.org
const (
VersionMajor = 2 // Major version component of the current release
VersionMinor = 59 // Minor version component of the current release
VersionMicro = 0 // Patch version component of the current release
VersionModifier = "dev" // Modifier component of the current release
VersionMajor = 2 // Major version component of the current release
VersionMinor = 59 // Minor version component of the current release
VersionMicro = 0 // Patch version component of the current release
VersionModifier = "" // Modifier component of the current release
VersionKeyCreated = "ErigonVersionCreated"
VersionKeyFinished = "ErigonVersionFinished"
)
Expand Down

0 comments on commit 0f0a445

Please sign in to comment.