Skip to content

Commit

Permalink
migrate: drop next hash for sentinel hash in chaindb2to3.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Aug 1, 2017
1 parent 63ff27d commit 42fe564
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions migrate/chaindb2to3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 42fe564

Please sign in to comment.