fix unit test

This commit is contained in:
Ben Wilson
2023-08-05 22:54:50 -04:00
parent 3d14f206f4
commit 924909bef0
+3 -1
View File
@@ -345,7 +345,9 @@ export class StratumV1Client {
let payoutInformation; let payoutInformation;
const devFeeAddress = this.configService.get('DEV_FEE_ADDRESS'); const devFeeAddress = this.configService.get('DEV_FEE_ADDRESS');
//50Th/s //50Th/s
const noFee = hashRate < 50000000000000; console.log('HASH RATE');
console.log(hashRate);
const noFee = hashRate != 0 && hashRate < 50000000000000;
if (noFee || devFeeAddress == null || devFeeAddress.length < 1) { if (noFee || devFeeAddress == null || devFeeAddress.length < 1) {
payoutInformation = [ payoutInformation = [
{ address: this.clientAuthorization.address, percent: 100 } { address: this.clientAuthorization.address, percent: 100 }