Skip to content

Commit

Permalink
update miniz to 2.2c
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake4 committed Oct 5, 2023
1 parent 9015e40 commit f2eddea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions Miners/miniz-amd-2.1c.ps1 → Miners/miniz-amd-2.2c.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ $Cfg = ReadOrCreateMinerConfig "Do you want use to mine the '$Name' miner" ([IO.
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "equihash144" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "etchash" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "ethash" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "ethashb3" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "evrprogpow" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "kaspa" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "progpow" }
)}
Expand Down Expand Up @@ -61,9 +63,9 @@ $Cfg.Algorithms | ForEach-Object {
$Pool.Hosts | ForEach-Object {
$pools = Get-Join " " @($pools, "--url=$user@$_`:$($Pool.Port) -p $($Pool.Password)")
}
$fee = if ($_.Algorithm -match "ethash" -or $_.Algorithm -match "etchash") { 0.75 }
elseif ($_.Algorithm -match "kawpow" -or $_.Algorithm -match "progpow") { 1 }
else { 2 }
$fee = 2
if (("etchash", "ethash") -contains $_.Algorithm) { $fee = 0.75 }
elseif (("ethashb3", "evrprogpow", "kawpow", "progpow") -contains $_.Algorithm) { $fee = 1 }
[MinerInfo]@{
Pool = $Pool.PoolName()
PoolKey = $Pool.PoolKey()
Expand All @@ -72,7 +74,7 @@ $Cfg.Algorithms | ForEach-Object {
Algorithm = $Algo
Type = [eMinerType]::AMD
API = "miniz"
URI = "https://mindminer.online/miners/miniz-21c.zip"
URI = "https://mindminer.online/miners/miniz-22c.zip"
Path = "$Name\miniz.exe"
ExtraArgs = $extrargs
Arguments = "$alg $pools -a $port --latency --show-shares --amd --stat-int=60 --retrydelay=$($Config.CheckTimeout) $extrargs"
Expand Down
10 changes: 6 additions & 4 deletions Miners/miniz-nv-2.1c.ps1 → Miners/miniz-nv-2.2c.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ $Cfg = ReadOrCreateMinerConfig "Do you want use to mine the '$Name' miner" ([IO.
[AlgoInfoEx]@{ Enabled = $false; Algorithm = "grimm"; ExtraArgs = "--oc2" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "etchash" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "ethash" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "ethashb3" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "evrprogpow" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "kaspa" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "progpow" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "ubqhash" }
Expand Down Expand Up @@ -102,9 +104,9 @@ $Cfg.Algorithms | ForEach-Object {
$Pool.Hosts | ForEach-Object {
$pools = Get-Join " " @($pools, "--url=$user@$_`:$($Pool.Port) -p $($Pool.Password)")
}
$fee = if ($_.Algorithm -match "ethash" -or $_.Algorithm -match "etchash") { 0.75 }
elseif ($_.Algorithm -match "kawpow" -or $_.Algorithm -match "progpow") { 1 }
else { 2 }
$fee = 2
if (("etchash", "ethash") -contains $_.Algorithm) { $fee = 0.75 }
elseif (("ethashb3", "evrprogpow", "kawpow", "progpow") -contains $_.Algorithm) { $fee = 1 }
[MinerInfo]@{
Pool = $Pool.PoolName()
PoolKey = $Pool.PoolKey()
Expand All @@ -113,7 +115,7 @@ $Cfg.Algorithms | ForEach-Object {
Algorithm = $Algo
Type = [eMinerType]::nVidia
API = "miniz"
URI = "https://mindminer.online/miners/miniz-21c.zip"
URI = "https://mindminer.online/miners/miniz-22c.zip"
Path = "$Name\miniz.exe"
ExtraArgs = $extrargs
Arguments = "$alg $pools -a $port --latency --show-shares --nvidia --stat-int=60 --retrydelay=$($Config.CheckTimeout) $extrargs"
Expand Down

0 comments on commit f2eddea

Please sign in to comment.