From 2549ffc4a8f9bcd3e980002b2f92da45b34bb4a9 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 12 Jun 2016 13:17:05 -0700 Subject: [PATCH] fix horrible typo. --- lib/bcoin/chaindb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/chaindb.js b/lib/bcoin/chaindb.js index 7b24fa7c..bdae44e3 100644 --- a/lib/bcoin/chaindb.js +++ b/lib/bcoin/chaindb.js @@ -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());