prune keys.

This commit is contained in:
Christopher Jeffrey 2016-06-06 23:16:00 -07:00
parent ea4e4b888d
commit 4f98ccfbfb
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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.');