Skip to content

Commit

Permalink
add ccminer bitcore
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake4 committed Feb 1, 2018
1 parent 90c6af9 commit acd04c5
Show file tree
Hide file tree
Showing 2 changed files with 44 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 = "v0.54"
static [string] $Version = "v0.55"
static [string] $BinLocation = "Bin"
static [eMinerType[]] $ActiveTypes
static [string[]] $CPUFeatures
Expand Down
43 changes: 43 additions & 0 deletions Miners/ccminer-bitcore-2.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<#
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
Algorithms = @(
[AlgoInfoEx]@{ Enabled = $true; Algorithm = "bitcore"; BenchmarkSeconds = 60 }
)})

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-bitcore/ccminer-bitcore-2.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 3 $($_.ExtraArgs)"
Port = 4068
BenchmarkSeconds = if ($_.BenchmarkSeconds) { $_.BenchmarkSeconds } else { $Cfg.BenchmarkSeconds }
}
}
}
}
}

0 comments on commit acd04c5

Please sign in to comment.