memblock: optimizations.
This commit is contained in:
parent
a03465632a
commit
0343140f0a
@ -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;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user