Skip to content

Commit

Permalink
Fix invalid block generation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasjones committed May 14, 2014
1 parent aa679b0 commit 2871b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function BlockTemplate(template){
this.height = template.height;
this.reserveOffset = template.reserved_offset;
this.buffer = new Buffer(this.blob, 'hex');
instanceId.copy(this.buffer, this.reserveOffset + 4);
instanceId.copy(this.buffer, this.reserveOffset + 4, 0, 3);
this.extraNonce = 0;
}
BlockTemplate.prototype = {
Expand Down Expand Up @@ -546,4 +546,4 @@ function startPoolServer(callback) {
log('debug', 'Server', 'Started server listening on port ' + config.poolPort);
callback(true);
});
}
}

0 comments on commit 2871b0a

Please sign in to comment.