mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
bug
This commit is contained in:
@@ -24,7 +24,7 @@ export class MiningJob {
|
|||||||
constructor(id: string, payoutInformation: AddressObject[], public blockTemplate: IBlockTemplate, public clean_jobs: boolean) {
|
constructor(id: string, payoutInformation: AddressObject[], public blockTemplate: IBlockTemplate, public clean_jobs: boolean) {
|
||||||
|
|
||||||
this.jobId = id;
|
this.jobId = id;
|
||||||
this.block.prevHash = this.swapEndianWords(this.convertToLittleEndian(blockTemplate.previousblockhash));
|
this.block.prevHash = this.convertToLittleEndian(blockTemplate.previousblockhash);
|
||||||
|
|
||||||
this.block.version = blockTemplate.version;
|
this.block.version = blockTemplate.version;
|
||||||
this.block.bits = parseInt(blockTemplate.bits, 16);
|
this.block.bits = parseInt(blockTemplate.bits, 16);
|
||||||
@@ -180,7 +180,7 @@ export class MiningJob {
|
|||||||
method: eResponseMethod.MINING_NOTIFY,
|
method: eResponseMethod.MINING_NOTIFY,
|
||||||
params: [
|
params: [
|
||||||
this.jobId,
|
this.jobId,
|
||||||
this.block.prevHash,
|
this.swapEndianWords(this.block.prevHash).toString('hex'),
|
||||||
this.coinbasePart1,
|
this.coinbasePart1,
|
||||||
this.coinbasePart2,
|
this.coinbasePart2,
|
||||||
this.merkle_branch,
|
this.merkle_branch,
|
||||||
|
|||||||
Reference in New Issue
Block a user