From fb6787e5ed89c53e71e141b34636fe94a1caa770 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 11 Mar 2016 23:01:05 -0800 Subject: [PATCH] fix pruning. --- lib/bcoin/chaindb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/chaindb.js b/lib/bcoin/chaindb.js index 0db97516..29f54a83 100644 --- a/lib/bcoin/chaindb.js +++ b/lib/bcoin/chaindb.js @@ -1470,7 +1470,7 @@ ChainDB.prototype._pruneQueue = function _pruneQueue(block, batch, callback) { utils.debug('Retroactively pruning txs at height %d.', block.height); utils.forEachSerial(hashes, function(hash, next) { - batch.del('t/q/' + block.height + '/' + hash); + batch.del('t/q/' + pad32(block.height) + '/' + hash); self._removeTX(hash, batch, next); }, callback); }