From 1d5bcc5918fb9ca69aed6f9c37443d7e328fe684 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 4 Dec 2016 18:59:49 -0800 Subject: [PATCH] block/worker: misc fixes. --- lib/primitives/block.js | 2 +- lib/workers/master.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;