Skip to content

Commit

Permalink
Add New Algo (equihash144,equihash192)
Browse files Browse the repository at this point in the history
Add New Algo
-equihash144
-equihash192
  • Loading branch information
xiaolin1579 committed Jul 14, 2018
1 parent 99d7ea0 commit 47b0dfe
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Include.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ Function Write-Config {
}
}

Function Get-FreeTcpPort {
While (Get-NetTCPConnection -LocalPort $StartPort -EA SilentlyContinue) {$StartPort++}
$StartPort
}

function Set-Stat {
param(
[Parameter(Mandatory = $true)]
Expand Down
25 changes: 25 additions & 0 deletions Miners/EWBF.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
$Path = '.\Bin\NVIDIA-EWBF\miner.exe'
$Uri = 'http://nemos.dx.am/opt/nemos/EWBFEquihashv0.3.7z'


$Commands = [PSCustomObject]@{
Equihash144 = ' --algo 144_5 --pers sngemPoW'
Equihash192 = ' --algo 192_7 --pers ZERO_PoW'

}

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

$Commands | Get-Member -MemberType NoteProperty | Select -ExpandProperty Name | ForEach {
[PSCustomObject]@{
Type = "NVIDIA"
Path = $Path
Arguments = "--api --server $($Pools.(Get-Algorithm($_)).Host) --port $($Pools.(Get-Algorithm($_)).Port) --user $($Pools.(Get-Algorithm($_)).User) --pass $($Pools.(Get-Algorithm($_)).Pass)$($Commands.$_)"
HashRates = [PSCustomObject]@{(Get-Algorithm($_)) = $Stats."$($Name)_$(Get-Algorithm($_))_HashRate".Live}
API = "EWBF"
Port = 42000
Wrap = $false
URI = $Uri
User = $Pools.(Get-Algorithm($_)).User
}
}

0 comments on commit 47b0dfe

Please sign in to comment.