prune keys.
This commit is contained in:
parent
ea4e4b888d
commit
4f98ccfbfb
@ -1480,9 +1480,9 @@ ChainDB.prototype._pruneBlock = function _pruneBlock(block, batch, callback) {
|
|||||||
|
|
||||||
futureHeight = pad32(block.height + this.keepBlocks);
|
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) {
|
this.db.fetch(key, function(data) {
|
||||||
assert(data.length === 32, 'Database corruption.');
|
assert(data.length === 32, 'Database corruption.');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user