From 0343140f0ab580388fd49c8fade3ab3656ea70e3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 30 Jul 2016 13:44:18 -0700 Subject: [PATCH] memblock: optimizations. --- lib/bcoin/memblock.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bcoin/memblock.js b/lib/bcoin/memblock.js index 0b17f1ef..3543fa2e 100644 --- a/lib/bcoin/memblock.js +++ b/lib/bcoin/memblock.js @@ -175,6 +175,8 @@ MemBlock.prototype.toRaw = function toRaw() { MemBlock.prototype.toBlock = function toBlock() { var block = bcoin.block.fromRaw(this.raw); + block._hash = this._hash; + block._cbHeight = this.coinbaseHeight; this.raw = null; return block; };