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; };