block/worker: misc fixes.
This commit is contained in:
parent
f45ce12bec
commit
1d5bcc5918
@ -130,7 +130,7 @@ Block.prototype.getRaw = function getRaw() {
|
|||||||
|
|
||||||
if (this.mutable) {
|
if (this.mutable) {
|
||||||
assert(!this._raw);
|
assert(!this._raw);
|
||||||
return this.frameNormal();
|
return this.frameWitness();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._raw) {
|
if (this._raw) {
|
||||||
|
|||||||
@ -210,7 +210,7 @@ Master.prototype.listen = function listen(env) {
|
|||||||
this.listening = true;
|
this.listening = true;
|
||||||
this.color = +env.BCOIN_WORKER_ISTTY === 1;
|
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.log = this.log.bind(this);
|
||||||
util.error = util.log;
|
util.error = util.log;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user