Skip to content

Commit

Permalink
xmrig cnv8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake4 committed Oct 16, 2018
1 parent 3618aea commit aa88d9f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Code/Config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Config : BaseConfig {
static [int] $Processors = 0
static [int] $Cores = 0
static [int] $Threads = 0
static [string] $Version = "v2.125"
static [string] $Version = "v2.126"
static [string] $BinLocation = "Bin"
static [string] $MinersLocation = "Miners"
static [string] $PoolsLocation = "Pools"
Expand Down
8 changes: 6 additions & 2 deletions Miners/xmrig-281.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ $Cfg.Algorithms | ForEach-Object {
# find pool by algorithm
$Pool = Get-Pool($Algo)
if ($Pool) {
$variant = "--variant 1"
if ($_.Algorithm -eq "cryptonightv8") {
$variant = "--variant 2"
}
$extrargs = Get-Join " " @($Cfg.ExtraArgs, $_.ExtraArgs)
[MinerInfo]@{
Pool = $Pool.PoolName()
Expand All @@ -46,7 +50,7 @@ $Cfg.Algorithms | ForEach-Object {
URI = "https://github.com/xmrig/xmrig-amd/releases/download/v2.8.1/xmrig-amd-2.8.1-win64.zip"
Path = "$Name\xmrig-amd.exe"
ExtraArgs = $extrargs
Arguments = "-o $($Pool.Host):$($Pool.PortUnsecure) -u $($Pool.User) -p $($Pool.Password) --api-port=4044 --variant 1 --donate-level=1 --opencl-platform=$([Config]::AMDPlatformId) -R $($Config.CheckTimeout) $extrargs"
Arguments = "-o $($Pool.Host):$($Pool.PortUnsecure) -u $($Pool.User) -p $($Pool.Password) --api-port=4044 $variant --donate-level=1 --opencl-platform=$([Config]::AMDPlatformId) -R $($Config.CheckTimeout) $extrargs"
Port = 4044
BenchmarkSeconds = if ($_.BenchmarkSeconds) { $_.BenchmarkSeconds } else { $Cfg.BenchmarkSeconds }
RunBefore = $_.RunBefore
Expand All @@ -63,7 +67,7 @@ $Cfg.Algorithms | ForEach-Object {
URI = "https://github.com/xmrig/xmrig-nvidia/releases/download/v2.8.1/xmrig-nvidia-2.8.1-cuda-9_2-win64.zip"
Path = "$Name\xmrig-nvidia.exe"
ExtraArgs = $extrargs
Arguments = "-o $($Pool.Host):$($Pool.PortUnsecure) -u $($Pool.User) -p $($Pool.Password) --api-port=4043 --variant 1 --donate-level=1 -R $($Config.CheckTimeout) $extrargs"
Arguments = "-o $($Pool.Host):$($Pool.PortUnsecure) -u $($Pool.User) -p $($Pool.Password) --api-port=4043 $variant --donate-level=1 -R $($Config.CheckTimeout) $extrargs"
Port = 4043
BenchmarkSeconds = if ($_.BenchmarkSeconds) { $_.BenchmarkSeconds } else { $Cfg.BenchmarkSeconds }
RunBefore = $_.RunBefore
Expand Down
6 changes: 5 additions & 1 deletion Miners/xmrig-cpu-281.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ $Cfg.Algorithms | ForEach-Object {
# find pool by algorithm
$Pool = Get-Pool($Algo)
if ($Pool) {
$variant = "--variant 1"
if ($_.Algorithm -eq "cryptonightv8") {
$variant = "--variant 2"
}
$extrargs = Get-Join " " @($Cfg.ExtraArgs, $_.ExtraArgs)
[MinerInfo]@{
Pool = $Pool.PoolName()
Expand All @@ -46,7 +50,7 @@ $Cfg.Algorithms | ForEach-Object {
URI = $url
Path = "$Name\xmrig.exe"
ExtraArgs = $extrargs
Arguments = "-o $($Pool.Host):$($Pool.PortUnsecure) -u $($Pool.User) -p $($Pool.Password) -R $($Config.CheckTimeout) --api-port=4045 --variant 1 --donate-level=1 --cpu-priority 0 $extrargs"
Arguments = "-o $($Pool.Host):$($Pool.PortUnsecure) -u $($Pool.User) -p $($Pool.Password) -R $($Config.CheckTimeout) --api-port=4045 $variant --donate-level=1 --cpu-priority 0 $extrargs"
Port = 4045
BenchmarkSeconds = if ($_.BenchmarkSeconds) { $_.BenchmarkSeconds } else { $Cfg.BenchmarkSeconds }
RunBefore = $_.RunBefore
Expand Down

0 comments on commit aa88d9f

Please sign in to comment.