mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +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() {
|
func doSanityCheck() {
|
||||||
csdb := download.MustLoadChecksums("build/checksums.txt")
|
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.
|
// the database. This task can be used to sanity-check new checksums.
|
||||||
func (db *ChecksumDB) VerifyAll() {
|
func (db *ChecksumDB) DownloadAndVerifyAll() {
|
||||||
var (
|
var tmp = os.TempDir()
|
||||||
tmp = os.TempDir()
|
|
||||||
)
|
|
||||||
for _, e := range db.hashes {
|
for _, e := range db.hashes {
|
||||||
if e.url == nil {
|
if e.url == nil {
|
||||||
log.Printf("Skipping verification of %s: no URL defined in checksum database", e.file)
|
log.Printf("Skipping verification of %s: no URL defined in checksum database", e.file)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue