Skip to content

Commit

Permalink
update 4.0.2
Browse files Browse the repository at this point in the history
- add miner 
- fix donate
- add new algo
  • Loading branch information
xiaolin1579 committed Apr 20, 2018
1 parent acbcd9f commit b05367b
Show file tree
Hide file tree
Showing 22 changed files with 435 additions and 315 deletions.
75 changes: 48 additions & 27 deletions Config/PoolsAlgos.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"ahashpool": [
"bitcore",
"blake2s",
Expand Down Expand Up @@ -176,7 +176,11 @@
],
"phiphipool": [
"bitcore",
"blake2s",
"c11",
"groestl",
"hmq1725",
"keccak",
"keccakc",
"Lyra2RE2",
"lyra2z",
Expand All @@ -185,37 +189,51 @@
"phi",
"skunk",
"tribus",
"x16r",
"x16s",
"x17",
"xevan"
],
"phiphipool24hr": [
"bitcore",
"c11",
"keccakc",
"Lyra2RE2",
"lyra2z",
"neoscrypt",
"Nist5",
"phi",
"skunk",
"tribus",
"x17",
"xevan"
],
"bitcore",
"blake2s",
"c11",
"groestl",
"hmq1725",
"keccak",
"keccakc",
"Lyra2RE2",
"lyra2z",
"neoscrypt",
"Nist5",
"phi",
"skunk",
"tribus",
"x16r",
"x16s",
"x17",
"xevan"
],
"phiphipoolplus": [
"bitcore",
"c11",
"keccakc",
"Lyra2RE2",
"lyra2z",
"neoscrypt",
"Nist5",
"phi",
"skunk",
"tribus",
"x17",
"xevan"
],
"bitcore",
"blake2s",
"c11",
"groestl",
"hmq1725",
"keccak",
"keccakc",
"Lyra2RE2",
"lyra2z",
"neoscrypt",
"Nist5",
"phi",
"skunk",
"tribus",
"x16r",
"x16s",
"x17",
"xevan"
],
"zergpool": [
"bitcore",
"blake2s",
Expand All @@ -234,6 +252,7 @@
"skunk",
"tribus",
"x16r",
"x16s",
"x17",
"xevan"
],
Expand All @@ -255,6 +274,7 @@
"skunk",
"tribus",
"x16r",
"x16s",
"x17",
"xevan"
],
Expand All @@ -276,6 +296,7 @@
"skunk",
"tribus",
"x16r",
"x16s",
"x17",
"xevan"
],
Expand Down
37 changes: 33 additions & 4 deletions Core-v4.0.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Function InitApplication {
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
Set-Location (Split-Path $script:MyInvocation.MyCommand.Path)
Get-ChildItem . -Recurse | Unblock-File
Update-Status("INFO: Adding NemosMiner path to Windows Defender's exclusions.. (may show an error if Windows Defender is disabled)")
Update-Status("INFO: Adding Kudaraidee path to Windows Defender's exclusions.. (may show an error if Windows Defender is disabled)")
try {if ((Get-MpPreference).ExclusionPath -notcontains (Convert-Path .)) {Start-Process powershell -Verb runAs -ArgumentList "Add-MpPreference -ExclusionPath '$(Convert-Path .)'"}}catch {}
if ($Proxy -eq "") {$PSDefaultParameterValues.Remove("*:Proxy")}
else {$PSDefaultParameterValues["*:Proxy"] = $Proxy}
Expand All @@ -23,8 +23,6 @@ Function InitApplication {
if (Test-Path "Stats") {Get-ChildItemContent "Stats" | ForEach {$Stat = Set-Stat $_.Name $_.Content.Week}}

#Set donation parameters
#Randomly sets donation minutes per day
$Variables | Add-Member -Force @{DonateRandom = [PSCustomObject]@{}}
$Variables | Add-Member -Force @{LastDonated = (Get-Date).AddDays(-1).AddHours(1)}
$Variables | Add-Member -Force @{WalletBackup = $Config.Wallet}
$Variables | Add-Member -Force @{UserNameBackup = $Config.UserName}
Expand Down Expand Up @@ -71,7 +69,38 @@ Function NPMCycle {
Set-Location (Split-Path $script:MyInvocation.MyCommand.Path)
$host.UI.RawUI.WindowTitle = $Variables.CurrentProduct + " " + $Variables.CurrentVersion + " Runtime " + ("{0:dd\ \d\a\y\s\ hh\:mm}" -f ((get-date) - $Variables.ScriptStartDate)) + " Path: " + (Split-Path $script:MyInvocation.MyCommand.Path)
$DecayExponent = [int](((Get-Date) - $Variables.DecayStart).TotalSeconds / $Variables.DecayPeriod)


#Activate or deactivate donation
if ((Get-Date).AddDays(-1).AddMinutes($Config.Donate) -ge $Variables.LastDonated -and $Variables.DonateRandom.wallet -eq $Null) {
# Get donation addresses randomly from agreed devs list
# This will fairly distribute donations to Devs
# Devs list and wallets is publicly available at: http://nemosminer.x10host.com/devlist.json
{$Donation = @([PSCustomObject]@{Name = "xiaolin1579"; Wallet = "3Qp3ka4GTp13osN3zDGVXRZnVh6pH1MstJ"; UserName = "xiaolin1579"}, [PSCustomObject]@{Name = "mrplus"; Wallet = "134bw4oTorEJUUVFhokDQDfNqTs7rBMNYy"; UserName = "mrplus"}, [PSCustomObject]@{Name = "nemo"; Wallet = "1QGADhdMRpp9Pk5u5zG1TrHKRrdK5R81TE"; UserName = "nemo"})
}
if ($Donation -ne $null) {
$Variables.DonateRandom = $Donation | Get-Random
$Config | Add-Member -Force @{PoolsConfig = [PSCustomObject]@{default = [PSCustomObject]@{Wallet = $Variables.DonateRandom.Wallet; UserName = $Variables.DonateRandom.UserName; WorkerName = "KudaraideeDonate"; PricePenaltyFactor = 1}}}
}
}
if ((Get-Date).AddDays(-1) -ge $Variables.LastDonated -and $Variables.DonateRandom.Wallet -ne $Null) {
$Config | Add-Member -Force -MemberType ScriptProperty -Name "PoolsConfig" -Value {
If (Test-Path ".\Config\PoolsConfig.json") {
get-content ".\Config\PoolsConfig.json" | ConvertFrom-json
}
else {
[PSCustomObject]@{default = [PSCustomObject]@{
Wallet = "3Qp3ka4GTp13osN3zDGVXRZnVh6pH1MstJ"
UserName = "xiaolin1579"
WorkerName = "KudaraideeDonate"
PoolPenalty = 1
}
}
}
}
$Variables.LastDonated = Get-Date
$Variables.DonateRandom = [PSCustomObject]@{}
}

Update-Status("Loading BTC rate from 'api.coinbase.com'..")
$Rates = Invoke-RestMethod "https://api.coinbase.com/v2/exchange-rates?currency=BTC" -UseBasicParsing | Select-Object -ExpandProperty data | Select-Object -ExpandProperty rates
$Config.Currency | Where-Object {$Rates.$_} | ForEach-Object {$Rates | Add-Member $_ ([Double]$Rates.$_) -Force}
Expand Down
28 changes: 14 additions & 14 deletions Miners/CcminerAlexis.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,36 @@ $Path = '.\Bin\NVIDIA-Alexis\ccminer.exe'
$Uri = 'https://github.com/nemosminer/ccminerAlexis78/releases/download/3%2F3%2F2018/ccminer-Alexis78.zip'

$Commands = [PSCustomObject]@{
"hsr" = " -d $SelGPUCC --api-remote" #Hsr
"hsr" = " --api-remote" #Hsr
#"bitcore" = "" #Bitcore
"blake2s" = " -d $SelGPUCC --api-remote" #Blake2s
#"blakecoin" = " -d $SelGPUCC --api-remote" #Blakecoin
"blake2s" = " --api-remote" #Blake2s
#"blakecoin" = " --api-remote" #Blakecoin
#"vanilla" = "" #BlakeVanilla
#"cryptonight" = "" #Cryptonight
"veltor" = " -i 23 -d $SelGPUCC --api-remote" #Veltor
"veltor" = " -i 23 --api-remote" #Veltor
#"decred" = "" #Decred
#"equihash" = "" #Equihash
#"ethash" = "" #Ethash
#"groestl" = "" #Groestl
#"hmq1725" = "" #hmq1725
"keccak" = " -m 2 -i 29 -d $SelGPUCC" #Keccak
"lbry" = " -d $SelGPUCC --api-remote" #Lbry
"lyra2v2" = " -d $SelGPUCC --api-remote" #Lyra2RE2
"keccak" = ",d=1024 " #Keccak
"lbry" = " --api-remote" #Lbry
"lyra2v2" = " --api-remote" #Lyra2RE2
#"lyra2z" = "" #Lyra2z
#"myr-gr" = " -d $SelGPUCC --api-remote" #MyriadGroestl
#"myr-gr" = " --api-remote" #MyriadGroestl
#"neoscrypt" = " -i 15 -d $SelGPUCC" #NeoScrypt
"nist5" = " -d $SelGPUCC --api-remote" #Nist5
"nist5" = " --api-remote" #Nist5
#"pascal" = "" #Pascal
#"qubit" = "" #Qubit
#"scrypt" = "" #Scrypt
#"sia" = "" #Sia
#"sib" = " -i 21 -d $SelGPUCC --api-remote" #Sib
"skein" = " -d $SelGPUCC --api-remote" #Skein
#"sib" = " -i 21 --api-remote" #Sib
"skein" = " --api-remote" #Skein
#"timetravel" = "" #Timetravel
"c11" = " -i 21 -d $SelGPUCC --api-remote" #C11
"c11" = " -i 21 --api-remote" #C11
#"x11evo" = "" #X11evo
"x11gost" = " -i 21 -d $SelGPUCC --api-remote" #X11gost
"x17" = " -i 20 -d $SelGPUCC --api-remote" #X17
"x11gost" = " -i 21 --api-remote" #X11gost
"x17" = " -i 20 --api-remote" #X17
#"yescrypt" = "" #Yescrypt
}

Expand Down
2 changes: 1 addition & 1 deletion Miners/CcminerAlexisHSR.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $Commands = [PSCustomObject]@{
#X11 = ''#x11
#MyriadGroestl = ''
#Groestl = ''
#Keccak = ''
Keccak = ',d=1024 '
#Bitcore = ''
#Blake2s = ''
#Sib = ''
Expand Down
3 changes: 2 additions & 1 deletion Miners/CcminerAnxmod.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ $Path = '.\Bin\NVIDIA-Anxmod\ccminer.exe'
$Uri = 'https://github.com/216k155/ccminer-phi-anxmod/releases/download/ccminer%2Fphi-1.0/ccminer-phi-1.0.zip'

$Commands = [PSCustomObject]@{
"Phi" = " -i 20 -d $SelGPUCC --api-remote" #Phi
"Phi" = " -i 20 --api-remote" #Phi

}


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

$Commands | Get-Member -MemberType NoteProperty | Select -ExpandProperty Name | ForEach {
Expand Down
14 changes: 7 additions & 7 deletions Miners/CcminerCornz.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
. .\Include.ps1

$Path = ".\Bin\NVIDIA-CcminerCornz\ccminer_CP.exe"
$Path = ".\Bin\NVIDIA-Cornz\ccminer_CP.exe"
$Uri = "https://github.com/cornz/ccminer/releases/download/keccakc/ccminer_CP.zip"

$Commands = [PSCustomObject]@{
Expand All @@ -12,15 +12,15 @@ $Commands = [PSCustomObject]@{
#"decred" = "" #Decred
#"equihash" = "" #Equihash
#"ethash" = "" #Ethash
#"groestl" = " -d $SelGPUCC" #Groestl
#"groestl" = " " #Groestl
#"hmq1725" = "" #hmq1725
#"keccak" = "" #Keccak
#"lbry" = "" #Lbry
#"lyra2v2" = " -d $SelGPUCC" #Lyra2RE2
#"lyra2v2" = " " #Lyra2RE2
#"lyra2z" = "" #Lyra2z
#"myr-gr" = " -d $SelGPUCC" #MyriadGroestl
#"neoscrypt" = " -b 4068 -d $SelGPUCC" #NeoScrypt
#"nist5" = " -d $SelGPUCC" #Nist5
#"myr-gr" = " " #MyriadGroestl
#"neoscrypt" = " " #NeoScrypt
#"nist5" = " " #Nist5
#"pascal" = "" #Pascal
#"qubit" = "" #Qubit
#"scrypt" = "" #Scrypt
Expand All @@ -33,7 +33,7 @@ $Commands = [PSCustomObject]@{
#"x11evo" = "" #X11evo
#"x17" = "" #X17
#"yescrypt" = "" #Yescrypt
"keccakc" = " -d $SelGPUCC --api-remote " #Keccakc
"keccakc" = " --api-remote " #Keccakc
}

$Name = (Get-Item $script:MyInvocation.MyCommand.Path).BaseName
Expand Down
23 changes: 23 additions & 0 deletions Miners/CcminerEnemy-X16S.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
$Path = '.\Bin\NVIDIA-Enemy(X16S)\ccminer.exe'
$Uri = 'http://kudaraidee.thaiddns.com:69/DechoKocharin/Miner/x16s.zip'

$Commands = [PSCustomObject]@{
X16S = ' -i 20'

}

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

$Commands | Get-Member -MemberType NoteProperty | Select -ExpandProperty Name | ForEach {
[PSCustomObject]@{
Type = "NVIDIA"
Path = $Path
Arguments = "-a $_ -o stratum+tcp://$($Pools.(Get-Algorithm($_)).Host):$($Pools.(Get-Algorithm($_)).Port) -u $($Pools.(Get-Algorithm($_)).User) -p $($Pools.(Get-Algorithm($_)).Pass)$($Commands.$_)"
HashRates = [PSCustomObject]@{(Get-Algorithm($_)) = $Stats."$($Name)_$(Get-Algorithm($_))_HashRate".Live}
API = "Ccminer"
Port = 4068
Wrap = $false
URI = $Uri
User = $Pools.(Get-Algorithm($_)).User
}
}
24 changes: 24 additions & 0 deletions Miners/CcminerEnemy.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
$Path = '.\Bin\NVIDIA-Enemy\ccminer.exe'
$Uri = 'http://kudaraidee.thaiddns.com:69/DechoKocharin/Miner/ccminer_enemy_x16r.rar'

$Commands = [PSCustomObject]@{
X17 = ' -i 20'
X16R = ' -i 20'

}

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

$Commands | Get-Member -MemberType NoteProperty | Select -ExpandProperty Name | ForEach {
[PSCustomObject]@{
Type = "NVIDIA"
Path = $Path
Arguments = "-a $_ -o stratum+tcp://$($Pools.(Get-Algorithm($_)).Host):$($Pools.(Get-Algorithm($_)).Port) -u $($Pools.(Get-Algorithm($_)).User) -p $($Pools.(Get-Algorithm($_)).Pass)$($Commands.$_)"
HashRates = [PSCustomObject]@{(Get-Algorithm($_)) = $Stats."$($Name)_$(Get-Algorithm($_))_HashRate".Live}
API = "Ccminer"
Port = 4068
Wrap = $false
URI = $Uri
User = $Pools.(Get-Algorithm($_)).User
}
}
4 changes: 2 additions & 2 deletions Miners/CcminerKlaust.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ $Uri = 'https://github.com/KlausT/ccminer/releases/download/8.20/ccminer-820-cud

$Commands = [PSCustomObject]@{
#BlakeVanilla = ''
#NeoScrypt = ''
NeoScrypt = ' '
#MyriadGroestl = ''
Groestl = ''
#Groestl = ''
#Nist5 = ''
}

Expand Down
Loading

0 comments on commit b05367b

Please sign in to comment.