mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-14 02:41:34 +00:00
verifyHash returns an error for both file-not-found (os.Open) and hash mismatch. DownloadFile previously printed 'is stale' for any error. Check errors.Is(err, os.ErrNotExist) to distinguish: - File missing: print 'not found, downloading' - Hash mismatch: print 'is stale' Fixes #31917 |
||
|---|---|---|
| .. | ||
| download.go | ||