fix horrible typo.

This commit is contained in:
Christopher Jeffrey 2016-06-12 13:17:05 -07:00
parent 07261da2e2
commit 2549ffc4a8
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -536,7 +536,7 @@ ChainDB.prototype.save = function save(entry, block, view, connect, callback) {
var hash = block.hash();
var height = new Buffer(4);
height.writeUInt32LE(height, 0, true);
height.writeUInt32LE(entry.height, 0, true);
batch.put(layout.h(hash), height);
batch.put(layout.e(hash), entry.toRaw());