From 4f98ccfbfb5b1cdccee23a87b6911d44712ee115 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 6 Jun 2016 23:16:00 -0700 Subject: [PATCH] prune keys. --- lib/bcoin/chaindb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bcoin/chaindb.js b/lib/bcoin/chaindb.js index 1b2be018..695e7a81 100644 --- a/lib/bcoin/chaindb.js +++ b/lib/bcoin/chaindb.js @@ -1480,9 +1480,9 @@ ChainDB.prototype._pruneBlock = function _pruneBlock(block, batch, callback) { futureHeight = pad32(block.height + this.keepBlocks); - batch.put('b/q/' + futureHeight, block.hash()); + batch.put('q/' + futureHeight, block.hash()); - key = 'b/q/' + pad32(block.height); + key = 'q/' + pad32(block.height); this.db.fetch(key, function(data) { assert(data.length === 32, 'Database corruption.');