mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-27 02:02:10 +01:00
logging
This commit is contained in:
parent
d0fc60032e
commit
ea726bbba4
@ -220,8 +220,9 @@ export class StratumV1Client extends EasyUnsubscribe {
|
||||
&& this.stratumInitialized == false) {
|
||||
|
||||
if (this.clientSuggestedDifficulty == null) {
|
||||
console.log(`Setting difficulty to ${this.sessionDifficulty}`)
|
||||
const setDifficulty = JSON.stringify(new SuggestDifficulty().response(this.sessionDifficulty));
|
||||
this.socket.write(setDifficulty + '\n')
|
||||
this.socket.write(setDifficulty + '\n');
|
||||
}
|
||||
|
||||
this.stratumInitialized = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user