fix pruning.

This commit is contained in:
Christopher Jeffrey 2016-03-11 23:01:05 -08:00
parent 9b90111a0a
commit fb6787e5ed

View File

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