From 42fe56459eb543acd558ab7c2b99ccb4977a1d08 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 21 Jul 2017 23:03:41 -0700 Subject: [PATCH] migrate: drop next hash for sentinel hash in chaindb2to3. --- migrate/chaindb2to3.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/migrate/chaindb2to3.js b/migrate/chaindb2to3.js index 06002b59..6458fa3c 100644 --- a/migrate/chaindb2to3.js +++ b/migrate/chaindb2to3.js @@ -404,6 +404,9 @@ async function finalize() { batch.del(JOURNAL_KEY); batch.put('V', data); + // This has bugged me for a while. + batch.del(pair('n', encoding.ZERO_HASH)); + if (shouldPrune) { let data = await db.get('O'); let flags;