This commit is contained in:
Ben Wilson
2023-07-12 20:55:45 -04:00
parent 06e86953b6
commit cf3f414475
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -322,7 +322,7 @@ export class StratumV1Client extends EasyUnsubscribe {
await this.promiseSocket.write(job.response());
console.log(`Sent new job to ${this.extraNonce}. (clearJobs: ${clearJobs}, fee?: ${!noFee})`)
console.log(`Sent new job to ${this.clientAuthorization.worker}.${this.extraNonce}. (clearJobs: ${clearJobs}, fee?: ${!noFee})`)
}
+3 -1
View File
@@ -60,10 +60,12 @@ export class BitcoinRpcService {
public async SUBMIT_BLOCK(hexdata: string): Promise<string> {
let response: string = 'unknown';
try {
await this.client.submitblock({
response = await this.client.submitblock({
hexdata
});
if (response == null) {
response = 'SUCCESS!';
}
console.log(`BLOCK SUBMISSION RESPONSE: ${response}`);
console.log(hexdata);
console.log(JSON.stringify(response));