Skip to content

Commit

Permalink
add ccminer tpruvot 2.2 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake4 committed Mar 16, 2018
1 parent be7d676 commit 979a4fc
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Config : BaseConfig {
static [int] $Processors = 0
static [int] $Cores = 0
static [int] $Threads = 0
static [string] $Version = "v1.22"
static [string] $Version = "v1.23"
static [string] $BinLocation = "Bin"
static [eMinerType[]] $ActiveTypes
static [string[]] $CPUFeatures
Expand Down
44 changes: 44 additions & 0 deletions Miners/ccminer-tpruvot-22.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<#
MindMiner Copyright (C) 2017 Oleg Samsonov aka Quake4
https://github.com/Quake4/MindMiner
License GPL-3.0
#>

. .\Code\Include.ps1

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

$Cfg = [BaseConfig]::ReadOrCreate([IO.Path]::Combine($PSScriptRoot, $Name + [BaseConfig]::Filename), @{
Enabled = $true
BenchmarkSeconds = 120
Algorithms = @(
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "lyra2v2" }
)})

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) {
[MinerInfo]@{
Pool = $Pool.PoolName()
PoolKey = $Pool.PoolKey()
Name = $Name
Algorithm = $Algo
Type = [eMinerType]::nVidia
API = "ccminer"
URI = "https://github.com/Quake4/MindMinerPrerequisites/raw/master/nVidia/ccminer-tpruvot/ccminer-tpruvot-22.zip"
Path = "$Name\ccminer.exe"
ExtraArgs = $_.ExtraArgs
Arguments = "-a $($_.Algorithm) -o stratum+tcp://$($Pool.Host):$($Pool.PortUnsecure) -u $($Pool.User) -p $($Pool.Password) -R 5 -N 1 $($_.ExtraArgs)"
Port = 4068
BenchmarkSeconds = if ($_.BenchmarkSeconds) { $_.BenchmarkSeconds } else { $Cfg.BenchmarkSeconds }
}
}
}
}
}

0 comments on commit 979a4fc

Please sign in to comment.