From 5fd25d1095dcac2c5d0d972b13659b0453ae1ea5 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 24 Jun 2018 00:08:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1=20Add=20reminder=20to=20check=20do?= =?UTF-8?q?wnloaded=20patch=20files=20for=20correctness?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/getPatch.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ssn/getPatch.ts b/src/ssn/getPatch.ts index 94ee5e8..9bd187f 100644 --- a/src/ssn/getPatch.ts +++ b/src/ssn/getPatch.ts @@ -13,6 +13,8 @@ export default async function getPatch(product: Product, from: number, to: numbe const zipFile = bufferArray[bufferArray.length - 1]; const dvArray = bufferArray.map((buffer) => new DataView(buffer)); + //TODO: Verify that downloaded files match the hash in `solidPkg.pieces` + const fileEntries = readSsnFile(zipFile); console.debug(fileEntries);