mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
witness commit
This commit is contained in:
@@ -346,8 +346,8 @@ export class StratumV1Client extends EasyUnsubscribe {
|
||||
if (submissionDifficulty >= job.networkDifficulty) {
|
||||
console.log('!!! BLOCK FOUND !!!');
|
||||
const blockHex = updatedJobBlock.toHex(false);
|
||||
this.bitcoinRpcService.SUBMIT_BLOCK(blockHex);
|
||||
await this.notificationService.notifySubscribersBlockFound(this.clientAuthorization.address);
|
||||
const result = await this.bitcoinRpcService.SUBMIT_BLOCK(blockHex);
|
||||
await this.notificationService.notifySubscribersBlockFound(this.clientAuthorization.address, result);
|
||||
}
|
||||
try {
|
||||
await this.statistics.addSubmission(this.entity, submissionHash, this.sessionDifficulty);
|
||||
|
||||
Reference in New Issue
Block a user