cherry pick hashrate fix from pqsql branch (#102)

This commit is contained in:
KillerInk
2025-04-04 13:40:02 -04:00
committed by GitHub
parent 554a8916a7
commit fd775965e5
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -390,7 +390,7 @@ export class StratumV1Client {
//50Th/s
this.noFee = false;
if (this.entity) {
this.hashRate = await this.clientStatisticsService.getHashRateForSession(this.clientAuthorization.address, this.clientAuthorization.worker, this.extraNonceAndSessionId);
this.hashRate = this.statistics.hashRate;
this.noFee = this.hashRate != 0 && this.hashRate < 50000000000000;
}
if (this.noFee || devFeeAddress == null || devFeeAddress.length < 1) {