mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
set diff if it isn't suggested
This commit is contained in:
@@ -219,6 +219,11 @@ export class StratumV1Client extends EasyUnsubscribe {
|
||||
&& this.clientAuthorization != null
|
||||
&& this.stratumInitialized == false) {
|
||||
|
||||
if (this.clientSuggestedDifficulty == null) {
|
||||
const setDifficulty = JSON.stringify(new SuggestDifficulty().response(this.sessionDifficulty));
|
||||
this.socket.write(setDifficulty + '\n')
|
||||
}
|
||||
|
||||
this.stratumInitialized = true;
|
||||
|
||||
this.entity = await this.clientService.save({
|
||||
|
||||
Reference in New Issue
Block a user