diff --git a/lib/primitives/block.js b/lib/primitives/block.js index ef8922a6..4ddbab4f 100644 --- a/lib/primitives/block.js +++ b/lib/primitives/block.js @@ -130,7 +130,7 @@ Block.prototype.getRaw = function getRaw() { if (this.mutable) { assert(!this._raw); - return this.frameNormal(); + return this.frameWitness(); } if (this._raw) { diff --git a/lib/workers/master.js b/lib/workers/master.js index c97cc7ff..154f9676 100644 --- a/lib/workers/master.js +++ b/lib/workers/master.js @@ -210,7 +210,7 @@ Master.prototype.listen = function listen(env) { this.listening = true; this.color = +env.BCOIN_WORKER_ISTTY === 1; - Network.set(env.BCOIN_WORKER_NETWORK); + this.set(env.BCOIN_WORKER_NETWORK); util.log = this.log.bind(this); util.error = util.log;