mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
taproot
This commit is contained in:
@@ -62,8 +62,6 @@ export class MiningJob {
|
||||
|
||||
const testBlock = Object.assign(new bitcoinjs.Block(), jobTemplate.block);
|
||||
|
||||
|
||||
|
||||
testBlock.transactions[0] = this.coinbaseTransaction;
|
||||
|
||||
testBlock.nonce = nonce;
|
||||
@@ -84,7 +82,7 @@ export class MiningJob {
|
||||
|
||||
testBlock.timestamp = timestamp;
|
||||
|
||||
return testBlock as any;
|
||||
return testBlock;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -287,11 +287,13 @@ export class StratumV1Client extends EasyUnsubscribe {
|
||||
this.stratumV1JobsService.newMiningJob$.pipe(
|
||||
takeUntil(this.easyUnsubscribe)
|
||||
).subscribe(async (jobTemplate) => {
|
||||
await this.sendNewMiningJob(jobTemplate);
|
||||
|
||||
await this.checkDifficulty();
|
||||
|
||||
await this.watchdog();
|
||||
try {
|
||||
await this.sendNewMiningJob(jobTemplate);
|
||||
await this.checkDifficulty();
|
||||
await this.watchdog();
|
||||
} catch (e) {
|
||||
this.promiseSocket.socket.emit('end', true);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user