From d2c75c29d330f5d81f26a009650e96e16c66aaea Mon Sep 17 00:00:00 2001 From: GoodByeZeroNet <63566141+GoodByeZeroNet@users.noreply.github.com> Date: Sun, 12 Apr 2020 23:55:15 +0000 Subject: [PATCH] Update SiteStorage.py --- src/Site/SiteStorage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Site/SiteStorage.py b/src/Site/SiteStorage.py index c12a80b0..f70d0087 100644 --- a/src/Site/SiteStorage.py +++ b/src/Site/SiteStorage.py @@ -419,7 +419,7 @@ class SiteStorage(object): raise Exception("File not allowed: %s" % path) return inner_path - # Verify all files sha512sum using content.json + # Verify all files b2sum using content.json def verifyFiles(self, quick_check=False, add_optional=False, add_changed=True): bad_files = [] back = defaultdict(int) @@ -477,7 +477,7 @@ class SiteStorage(object): file_inner_path = helper.getDirname(content_inner_path) + file_relative_path # Relative to site dir file_inner_path = file_inner_path.strip("/") # Strip leading / file_path = self.getPath(file_inner_path) - hash_id = self.site.content_manager.hashfield.getHashId(file_node["sha512"]) + hash_id = self.site.content_manager.hashfield.getHashId(file_node["blake2b"]) if not os.path.isfile(file_path): if self.site.content_manager.isDownloaded(file_inner_path, hash_id): back["num_optional_removed"] += 1