mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
increase job queue
This commit is contained in:
@@ -316,6 +316,10 @@ export class StratumV1Client {
|
||||
});
|
||||
|
||||
this.backgroundWork = setInterval(async () => {
|
||||
if (this.promiseSocket.isPromiseWritable == false) {
|
||||
this.destroy();
|
||||
return;
|
||||
}
|
||||
await this.checkDifficulty();
|
||||
//await this.watchdog();
|
||||
}, 60 * 1000);
|
||||
|
||||
@@ -127,7 +127,7 @@ export class StratumV1JobsService {
|
||||
this.jobs = [];
|
||||
}
|
||||
|
||||
if (this.blocks.length >= 10) {
|
||||
if (this.blocks.length >= 30) {
|
||||
this.blocks.shift();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user