fix worker mining.

This commit is contained in:
Christopher Jeffrey 2016-05-14 14:30:59 -07:00
parent 7e8ac5e159
commit 3a9a0d9840
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 5 additions and 2 deletions

View File

@ -43,7 +43,10 @@ function ChainEntry(chain, data, prev) {
return new ChainEntry(chain, data);
this.chain = chain;
this.network = this.chain.network;
this.network = this.chain
? this.chain.network
: bcoin.network.get();
this.hash = data.hash;
this.version = data.version;

View File

@ -607,7 +607,7 @@ jobs.verify = function verify(tx, index, force, flags) {
*/
jobs.mine = function mine(data) {
var attempt = new bcoin.miner.minerblock({
var attempt = new bcoin.minerblock({
tip: data.tip,
version: data.version,
target: data.target,