Skip to content

Commit

Permalink
update trex to 0.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake4 committed Jul 28, 2018
1 parent 8bf438f commit 5e0c223
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions Miners/ccminer-trex-053.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<#
MindMiner Copyright (C) 2018 Oleg Samsonov aka Quake4
https://github.com/Quake4/MindMiner
License GPL-3.0
#>

if ([Config]::ActiveTypes -notcontains [eMinerType]::nVidia) { exit }

$Name = (Get-Item $script:MyInvocation.MyCommand.Path).BaseName

$Cfg = [BaseConfig]::ReadOrCreate([IO.Path]::Combine($PSScriptRoot, $Name + [BaseConfig]::Filename), @{
Enabled = $true
BenchmarkSeconds = 90
ExtraArgs = $null
Algorithms = @(
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "c11" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "hsr" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "lyra2z" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "phi" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "phi2" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "tribus"; BenchmarkSeconds = 120 }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "x16r"; BenchmarkSeconds = 120 }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "x17"; BenchmarkSeconds = 120 }
)})

if (!$Cfg.Enabled) { return }

$Cfg.Algorithms | ForEach-Object {
if ($_.Enabled) {
$Algo = Get-Algo($_.Algorithm)
if ($Algo) {
# find pool by algorithm
$Pool = Get-Pool($Algo)
if ($Pool) {
$N = Get-CCMinerStatsAvg $Algo $_
$extrargs = Get-Join " " @($Cfg.ExtraArgs, $_.ExtraArgs)
[MinerInfo]@{
Pool = $Pool.PoolName()
PoolKey = $Pool.PoolKey()
Name = $Name
Algorithm = $Algo
Type = [eMinerType]::nVidia
API = "ccminer_woe"
URI = "http://mindminer.online/miners/nVidia/t-rex-053.zip"
Path = "$Name\t-rex.exe"
ExtraArgs = $extrargs
Arguments = "-a $($_.Algorithm) -o stratum+tcp://$($Pool.Host):$($Pool.PortUnsecure) -u $($Pool.User) -p $($Pool.Password) --retry_pause $($Config.CheckTimeout) -b 127.0.0.1:4068 $N $extrargs"
Port = 4068
BenchmarkSeconds = if ($_.BenchmarkSeconds) { $_.BenchmarkSeconds } else { $Cfg.BenchmarkSeconds }
RunBefore = $_.RunBefore
RunAfter = $_.RunAfter
Fee = 1
}
}
}
}
}

0 comments on commit 5e0c223

Please sign in to comment.