mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
tweaks
This commit is contained in:
@@ -322,7 +322,7 @@ export class StratumV1Client extends EasyUnsubscribe {
|
|||||||
|
|
||||||
await this.promiseSocket.write(job.response());
|
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})`)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,10 +60,12 @@ export class BitcoinRpcService {
|
|||||||
public async SUBMIT_BLOCK(hexdata: string): Promise<string> {
|
public async SUBMIT_BLOCK(hexdata: string): Promise<string> {
|
||||||
let response: string = 'unknown';
|
let response: string = 'unknown';
|
||||||
try {
|
try {
|
||||||
await this.client.submitblock({
|
response = await this.client.submitblock({
|
||||||
hexdata
|
hexdata
|
||||||
});
|
});
|
||||||
|
if (response == null) {
|
||||||
response = 'SUCCESS!';
|
response = 'SUCCESS!';
|
||||||
|
}
|
||||||
console.log(`BLOCK SUBMISSION RESPONSE: ${response}`);
|
console.log(`BLOCK SUBMISSION RESPONSE: ${response}`);
|
||||||
console.log(hexdata);
|
console.log(hexdata);
|
||||||
console.log(JSON.stringify(response));
|
console.log(JSON.stringify(response));
|
||||||
|
|||||||
Reference in New Issue
Block a user