Skip to content

Commit

Permalink
Update pool MiningRigRentals
Browse files Browse the repository at this point in the history
- fix warning when no algo is selected
  • Loading branch information
RainbowMiner committed Jan 28, 2019
1 parent 6a84409 commit 42b8a1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Pools/MiningRigRentals.ps1
Expand Up @@ -100,7 +100,10 @@ if (($Rigs_Request | Where-Object {$_.status.status -eq "rented"} | Measure-Obje
$Rigs_Request | Foreach-Object {Set-MiningRigRentalStatus $_.id -Stop}
}

$RigInfo_Request = @(Invoke-MiningRigRentalRequest "/rig/$(($Rigs_Request | Where-Object {$_.available_status -eq "available"} | Select-Object -ExpandProperty id | Sort-Object) -join ';')/port" $API_Key $API_Secret -Timeout 20 -Cache 3600 | Select-Object)
$Rigs_Ids = ($Rigs_Request | Where-Object {$_.available_status -eq "available"} | Select-Object -ExpandProperty id | Sort-Object) -join ';'
if (-not $Rigs_Ids) {return}

$RigInfo_Request = @(Invoke-MiningRigRentalRequest "/rig/$($Rigs_Ids)/port" $API_Key $API_Secret -Timeout 20 -Cache 3600 | Select-Object)
if (-not $RigInfo_Request) {
Write-Log -Level Warn "Pool API ($Name) rig $Worker info request has failed. "
return
Expand Down

0 comments on commit 42b8a1f

Please sign in to comment.