mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
internal/download: rename to DownloadAndVerifyAll
This commit is contained in:
parent
5f4917b7e5
commit
f81d9bfdc3
2 changed files with 4 additions and 6 deletions
|
|
@ -1170,5 +1170,5 @@ func doPurge(cmdline []string) {
|
|||
|
||||
func doSanityCheck() {
|
||||
csdb := download.MustLoadChecksums("build/checksums.txt")
|
||||
csdb.VerifyAll()
|
||||
csdb.DownloadAndVerifyAll()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,12 +127,10 @@ func (db *ChecksumDB) Files() iter.Seq[string] {
|
|||
}
|
||||
}
|
||||
|
||||
// VerifyAll downloads all files and checks that they match the checksum given in
|
||||
// DownloadAndVerifyAll downloads all files and checks that they match the checksum given in
|
||||
// the database. This task can be used to sanity-check new checksums.
|
||||
func (db *ChecksumDB) VerifyAll() {
|
||||
var (
|
||||
tmp = os.TempDir()
|
||||
)
|
||||
func (db *ChecksumDB) DownloadAndVerifyAll() {
|
||||
var tmp = os.TempDir()
|
||||
for _, e := range db.hashes {
|
||||
if e.url == nil {
|
||||
log.Printf("Skipping verification of %s: no URL defined in checksum database", e.file)
|
||||
|
|
|
|||
Loading…
Reference in a new issue