Skip to content

Commit

Permalink
add srbm for intel
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake4 committed Oct 4, 2023
1 parent 81bd00b commit 2b6b1b0
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 1 deletion.
87 changes: 87 additions & 0 deletions Miners/srbm-intel-2.3.7.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<#
MindMiner Copyright (C) 2019-2023 Oleg Samsonov aka Quake4
https://github.com/Quake4/MindMiner
License GPL-3.0
#>

if ([Config]::ActiveTypes -notcontains [eMinerType]::Intel) { exit }
if (![Config]::Is64Bit) { exit }

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

$Cfg = ReadOrCreateMinerConfig "Do you want use to mine the '$Name' miner" ([IO.Path]::Combine($PSScriptRoot, $Name + [BaseConfig]::Filename)) @{
Enabled = $true
BenchmarkSeconds = 120
ExtraArgs = $null
Algorithms = @(
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "autolykos2" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "blake3_alephium" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "blake3_ironfish" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "dynex" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "etchash" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "ethash" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "ethashb3" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "evrprogpow" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "firopow" }
[AlgoInfoEx]@{ Enabled = $([Config]::ActiveTypes -notcontains [eMinerType]::CPU); Algorithm = "heavyhash" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "kaspa" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "kawpow" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "memehash" }
[AlgoInfoEx]@{ Enabled = $([Config]::ActiveTypes -notcontains [eMinerType]::CPU); Algorithm = "sha256dt" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "sha3d" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "sha512_256d_radiant" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "ubqhash" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "verushash" }
)}

if (!$Cfg.Enabled) { return }

$port = [Config]::Ports[[int][eMinerType]::nVidia]

$Cfg.Algorithms | ForEach-Object {
if ($_.Enabled) {
$Algo = Get-Algo($_.Algorithm)
if ($Algo) {
# find pool by algorithm
$Pool = Get-Pool($Algo)
if ($Pool -and !($Pool.Name -match "mph" -and ("ethash", "etchash") -contains $_.Algorithm)) {
$extrargs = Get-Join " " @($Cfg.ExtraArgs, $_.ExtraArgs)
$nicehash = "--nicehash false"
if ($Pool.Name -match "nicehash") {
$nicehash = "--nicehash true"
}
$tls = "false"
if ($Pool.Protocol -match "ssl") { $tls = "true" }
$pools = [string]::Empty
$Pool.Hosts | ForEach-Object {
$pools = Get-Join "!" @($pools, "$_`:$($Pool.Port)")
}
$fee = 0.85
if (("cosa", "memehash") -contains $_.Algorithm) { $fee = 2 }
elseif (("dynex") -contains $_.Algorithm) { $fee = 2.5 }
elseif (("argon2d_16000") -contains $_.Algorithm) { $fee = 76 }
elseif (("ethash", "etchash", "ubqhash") -contains $_.Algorithm) { $fee = 0.65 }
elseif (("autolykos2", "dynamo", "verthash", "pufferfish2bmb") -contains $_.Algorithm) { $fee = 1 }
elseif (("yespowerlitb", "yespowerurx", "blake2b", "blake2s", "cryptonight_talleo", "k12", "keccak") -contains $_.Algorithm) { $fee = 0 }
[MinerInfo]@{
Pool = $Pool.PoolName()
PoolKey = $Pool.PoolKey()
Priority = $Pool.Priority
Name = $Name
Algorithm = $Algo
Type = [eMinerType]::nVidia
API = "srbm2"
URI = "https://github.com/doktor83/SRBMiner-Multi/releases/download/2.3.7/SRBMiner-Multi-2-3-7-win64.zip"
Path = "$Name\SRBMiner-MULTI.exe"
ExtraArgs = $extrargs
Arguments = "--algorithm $($_.Algorithm) --pool $pools --wallet $($Pool.User) --password $($Pool.Password) --tls $tls --api-enable --api-port $port --disable-cpu --disable-gpu-amd --disable-gpu-nvidia --retry-time $($Config.CheckTimeout) $nicehash $extrargs"
Port = $port
BenchmarkSeconds = if ($_.BenchmarkSeconds) { $_.BenchmarkSeconds } else { $Cfg.BenchmarkSeconds }
RunBefore = $_.RunBefore
RunAfter = $_.RunAfter
Fee = $fee
}
}
}
}
}
4 changes: 3 additions & 1 deletion Miners/srbm-nv-2.3.7.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ $Cfg = ReadOrCreateMinerConfig "Do you want use to mine the '$Name' miner" ([IO.
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "progpow_epic" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "progpow_sero" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "progpow_veil" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "progpow_zano" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "progpow_veriblock" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "progpow_zano" }
[AlgoInfoEx]@{ Enabled = $([Config]::ActiveTypes -notcontains [eMinerType]::CPU); Algorithm = "sha256dt" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "sha3d" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "sha512_256d_radiant" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "ubqhash" }
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "verushash" }
)}

if (!$Cfg.Enabled) { return }
Expand Down

0 comments on commit 2b6b1b0

Please sign in to comment.