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); }