Skip to content

Commit

Permalink
wallet switching testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MaynardMiner committed Mar 24, 2019
1 parent 726c3ff commit 4fb3879
Show file tree
Hide file tree
Showing 24 changed files with 816 additions and 388 deletions.
16 changes: 8 additions & 8 deletions algopools/ahashpool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ if ($Poolname -eq $Name) {
Protocol = "stratum+tcp"
Host = $ahashpool_Host
Port = $ahashpool_Port
User1 = $Wallet1
User2 = $Wallet2
User3 = $Wallet3
CPUser = $Wallet1
CPUPass = "c=$Passwordcurrency1,ID=$Rigname1"
Pass1 = "c=$Passwordcurrency1,ID=$Rigname1"
Pass2 = "c=$Passwordcurrency2,ID=$Rigname2"
Pass3 = "c=$Passwordcurrency3,ID=$Rigname3"
User1 = $global:Wallets.Wallet1.BTC.address
User2 = $global:Wallets.Wallet2.BTC.address
User3 = $global:Wallets.Wallet3.BTC.address
CPUser = $global:Wallets.Wallet1.BTC.address
CPUPass = "c=$($global:Wallets.Wallet1.keys),ID=$Rigname1"
Pass1 = "c=$($global:Wallets.Wallet1.keys),ID=$Rigname1"
Pass2 = "c=$($global:Wallets.Wallet2.keys),ID=$Rigname2"
Pass3 = "c=$($global:Wallets.Wallet3.keys),ID=$Rigname3"
Location = $Location
SSL = $false
}
Expand Down
16 changes: 8 additions & 8 deletions algopools/blazepool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ if ($Poolname -eq $Name) {
Protocol = "stratum+tcp"
Host = $blazepool_Host
Port = $blazepool_Port
User1 = $Wallet1
User2 = $Wallet2
User3 = $Wallet3
CPUser = $Wallet1
CPUPass = "c=$Passwordcurrency1,ID=$Rigname1"
Pass1 = "c=$Passwordcurrency1,ID=$Rigname1"
Pass2 = "c=$Passwordcurrency2,ID=$Rigname2"
Pass3 = "c=$Passwordcurrency3,ID=$Rigname3"
User1 = $global:Wallets.Wallet1.BTC.address
User2 = $global:Wallets.Wallet2.BTC.address
User3 = $global:Wallets.Wallet3.BTC.address
CPUser = $global:Wallets.Wallet1.BTC.address
CPUPass = "c=$($global:Wallets.Wallet1.keys),ID=$Rigname1"
Pass1 = "c=$($global:Wallets.Wallet1.keys),ID=$Rigname1"
Pass2 = "c=$($global:Wallets.Wallet2.keys),ID=$Rigname2"
Pass3 = "c=$($global:Wallets.Wallet3.keys),ID=$Rigname3"
Location = $Location
SSL = $false
}
Expand Down
65 changes: 43 additions & 22 deletions algopools/blockmasters.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,44 @@ if ($Poolname -eq $Name) {

$Fee = 22.5

$Estimate = if ($Stat_Algo -eq "Day") {[Double]$blockpool_Request.$_.estimate_last24h*(1-($Fee/100))}else{[Double]$blockpool_Request.$_.estimate_current*(1-($Fee/100))}
$Estimate = if ($Stat_Algo -eq "Day") {[Double]$blockpool_Request.$_.estimate_last24h * (1 - ($Fee / 100))}else {[Double]$blockpool_Request.$_.estimate_current * (1 - ($Fee / 100))}

$Stat = Set-Stat -Name "$($Name)_$($blockpool_Algorithm)_profit" -Value ([Double]$Estimate/$Divisor)
$Stat = Set-Stat -Name "$($Name)_$($blockpool_Algorithm)_profit" -Value ([Double]$Estimate / $Divisor)
if ($Stat_Algo -eq "Day") {$CStat = $Stat.Live}else {$CStat = $Stat.$Stat_Algo}

If ($AltWallet1 -ne '') {$blockWallet1 = $AltWallet1}
else {$blockWallet1 = $Wallet1}
if ($AltWallet2 -ne '') {$blockWallet2 = $AltWallet2}
else {$blockWallet2 = $Wallet2}
if ($AltWallet3 -ne '') {$blockWallet3 = $AltWallet3}
else {$blockWallet3 = $Wallet3}
if ($AltPassword1 -ne '') {$blockpass1 = $Altpassword1}
else {$blockpass1 = $Passwordcurrency1}
if ($AltPassword2 -ne '') {$blockpass2 = $AltPassword2}
else {$blockpass2 = $Passwordcurrency2}
if ($AltPassword3 -ne '') {$blockpass3 = $AltPassword3}
else {$blockpass3 = $Passwordcurrency3}
$Pass1 = "$($global:Wallets.Wallet1.Keys)";
$User1 = "$($global:Wallets.Wallet1.BTC.address)";
$Pass2 = "$($global:Wallets.Wallet2.Keys)";
$User2 = "$($global:Wallets.Wallet2.BTC.address)";
$Pass3 = "$($global:Wallets.Wallet3.Keys)";
$User3 = "$($global:Wallets.Wallet3.BTC.address)";

$Pass1 = $global:Wallets.Wallet1.Keys
$User1 = $global:Wallets.Wallet1.BTC.address
$Pass2 = $global:Wallets.Wallet2.Keys
$User2 = $global:Wallets.Wallet2.BTC.address
$Pass3 = $global:Wallets.Wallet3.Keys
$User3 = $global:Wallets.Wallet3.BTC.address

$global:Wallets.AltWallet1.Keys | ForEach-Object {
if ($global:Wallets.AltWallet1.$_.Pools -contains $Name) {
$Pass1 = $_;
$User1 = $global:Wallets.AltWallet1.$_.address;
}
}
$global:Wallets.AltWallet2.Keys | ForEach-Object {
if ($global:Wallets.AltWallet2.$_.Pools -contains $Name) {
$Pass2 = $_;
$User2 = $global:Wallets.AltWallet2.$_.address;
}
}
$global:Wallets.AltWallet3.Keys | ForEach-Object {
if ($global:Wallets.AltWallet3.$_.Pools -contains $Name) {
$Pass3 = $_;
$User3 = $global:Wallets.AltWallet3.$_.address;
}
}

[PSCustomObject]@{
Priority = $Priorities.Pool_Priorities.$Name
Symbol = $blockpool_Algorithm
Expand All @@ -63,14 +84,14 @@ if ($Poolname -eq $Name) {
Protocol = "stratum+tcp"
Host = $blockpool_Host
Port = $blockpool_Port
User1 = $blockwallet1
User2 = $blockwallet2
User3 = $blockwallet3
CPUser = $blockwallet1
CPUPass = "c=$blockpass1,ID=$Rigname1"
Pass1 = "c=$blockpass1,ID=$Rigname1"
Pass2 = "c=$blockpass2,ID=$Rigname2"
Pass3 = "c=$blockpass3,ID=$Rigname3"
User1 = $User1
User2 = $User2
User3 = $User3
CPUser = $User1
CPUPass = "c=$Pass1,ID=$Rigname1"
Pass1 = "c=$Pass1,ID=$Rigname1"
Pass2 = "c=$Pass2,ID=$Rigname2"
Pass3 = "c=$Pass3,ID=$Rigname3"
Location = $Location
SSL = $false
}
Expand Down
16 changes: 8 additions & 8 deletions algopools/fairpool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ if ($Poolname -eq $Name) {
Protocol = "stratum+tcp"
Host = $fairpool_Host
Port = $fairpool_Port
User1 = $Wallet1
User2 = $Wallet2
User3 = $Wallet3
CPUser = $Wallet1
CPUPass = "c=$Passwordcurrency1,ID=$Rigname1"
Pass1 = "c=$Passwordcurrency1,ID=$Rigname1"
Pass2 = "c=$Passwordcurrency2,ID=$Rigname2"
Pass3 = "c=$Passwordcurrency3,ID=$Rigname3"
User1 = $global:Wallets.Wallet1.BTC.address
User2 = $global:Wallets.Wallet2.BTC.address
User3 = $global:Wallets.Wallet3.BTC.address
CPUser = $global:Wallets.Wallet1.BTC.address
CPUPass = "c=$($global:Wallets.Wallet1.keys),ID=$Rigname1"
Pass1 = "c=$($global:Wallets.Wallet1.keys),ID=$Rigname1"
Pass2 = "c=$($global:Wallets.Wallet2.keys),ID=$Rigname2"
Pass3 = "c=$($global:Wallets.Wallet3.keys),ID=$Rigname3"
Location = $Location
SSL = $false
}
Expand Down
16 changes: 8 additions & 8 deletions algopools/hashrefinery.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ if ($Poolname -eq $Name) {
Protocol = "stratum+tcp"
Host = $Hashrefinery_Host
Port = $Hashrefinery_Port
User1 = $Wallet1
User2 = $Wallet2
User3 = $Wallet3
CPUser = $Wallet1
CPUPass = "c=$Passwordcurrency1,ID=$Rigname1"
Pass1 = "c=$Passwordcurrency1,ID=$Rigname1"
Pass2 = "c=$Passwordcurrency2,ID=$Rigname2"
Pass3 = "c=$Passwordcurrency3,ID=$Rigname3"
User1 = $global:Wallets.Wallet1.BTC.address
User2 = $global:Wallets.Wallet2.BTC.address
User3 = $global:Wallets.Wallet3.BTC.address
CPUser = $global:Wallets.Wallet1.BTC.address
CPUPass = "c=$($global:Wallets.Wallet1.keys),ID=$Rigname1"
Pass1 = "c=$($global:Wallets.Wallet1.keys),ID=$Rigname1"
Pass2 = "c=$($global:Wallets.Wallet2.keys),ID=$Rigname2"
Pass3 = "c=$($global:Wallets.Wallet3.keys),ID=$Rigname3"
Location = $Location
SSL = $false
}
Expand Down
56 changes: 34 additions & 22 deletions algopools/nlpool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,37 @@ if ($Poolname -eq $Name) {
$nlpoolAlgo_Host = "mine.nlpool.nl"
$nlpoolAlgo_Port = $nlpool_Request.$_.port
$Divisor = (1000000 * $nlpool_Request.$_.mbtc_mh_factor)
$Fees = $nlpool_Request.$_.fees
$Workers = $nlpool_Request.$_.Workers
$Estimate = if ($Stat_Algo -eq "Day") {[Double]$nlpool_Request.$_.estimate_last24h}else {[Double]$nlpool_Request.$_.estimate_current}

$Stat = Set-Stat -Name "$($Name)_$($nlpoolAlgo_Algorithm)_profit" -Value ([Double]$Estimate/$Divisor *(1-($nlpool_Request.$_.fees/100)))
if ($Stat_Algo -eq "Day") {$CStat = $Stat.Live}else {$CStat = $Stat.$Stat_Algo}

If ($AltWallet1 -ne '') {$nWallet1 = $AltWallet1}
else {$nWallet1 = $Wallet1}
if ($AltWallet2 -ne '') {$nWallet2 = $AltWallet2}
else {$nWallet2 = $Wallet2}
if ($AltWallet3 -ne '') {$nWallet3 = $AltWallet3}
else {$nWallet3 = $Wallet3}
if ($AltPassword1 -ne '') {$npass1 = $AltPassword1}
else {$npass1 = $PasswordCurrency1}
if ($AltPassword2 -ne '') {$npass2 = $AltPassword2}
else {$npass2 = $PasswordCurrency2}
if ($AltPassword3 -ne '') {$npass3 = $AltPassword3}
else {$npass3 = $PasswordCurrency3}
$Pass1 = $global:Wallets.Wallet1.Keys
$User1 = $global:Wallets.Wallet1.BTC.address
$Pass2 = $global:Wallets.Wallet2.Keys
$User2 = $global:Wallets.Wallet2.BTC.address
$Pass3 = $global:Wallets.Wallet3.Keys
$User3 = $global:Wallets.Wallet3.BTC.address

$global:Wallets.AltWallet1.Keys | ForEach-Object {
if ($global:Wallets.AltWallet1.$_.Pools -contains $Name) {
$Pass1 = $_;
$User1 = $global:Wallets.AltWallet1.$_.address;
}
}
$global:Wallets.AltWallet2.Keys | ForEach-Object {
if ($global:Wallets.AltWallet2.$_.Pools -contains $Name) {
$Pass2 = $_;
$User2 = $global:Wallets.AltWallet2.$_.address;
}
}
$global:Wallets.AltWallet3.Keys | ForEach-Object {
if ($global:Wallets.AltWallet3.$_.Pools -contains $Name) {
$Pass3 = $_;
$User3 = $global:Wallets.AltWallet3.$_.address;
}
}

[PSCustomObject]@{
Priority = $Priorities.Pool_Priorities.$Name
Symbol = $nlpoolAlgo_Algorithm
Expand All @@ -49,14 +61,14 @@ if ($Poolname -eq $Name) {
Protocol = "stratum+tcp"
Host = $nlpoolAlgo_Host
Port = $nlpoolAlgo_Port
User1 = $nWallet1
User2 = $nWallet2
User3 = $nWallet3
CPUser = $nWallet1
CPUPass = "c=$npass1,ID=$Rigname1"
Pass1 = "c=$npass1,ID=$Rigname1"
Pass2 = "c=$npass2,ID=$Rigname2"
Pass3 = "c=$npass3,ID=$Rigname3"
User1 = $User1
User2 = $User2
User3 = $User3
CPUser = $User1
CPUPass = "c=$Pass1,ID=$Rigname1"
Pass1 = "c=$Pass1,ID=$Rigname1"
Pass2 = "c=$Pass2,ID=$Rigname2"
Pass3 = "c=$Pass3,ID=$Rigname3"
Location = $Location
SSL = $false
}
Expand Down
16 changes: 8 additions & 8 deletions algopools/phiphipool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ if ($Poolname -eq $Name) {
Protocol = "stratum+tcp"
Host = $phiphipool_Host
Port = $phiphipool_Port
User1 = $Wallet1
User2 = $Wallet2
User3 = $Wallet3
CPUser = $CPUWallet
CPUPass = "c=$CPUcurrency,ID=$Rigname1"
Pass1 = "c=$Passwordcurrency1,ID=$Rigname1"
Pass2 = "c=$Passwordcurrency2,ID=$Rigname2"
Pass3 = "c=$Passwordcurrency3,ID=$Rigname3"
User1 = $global:Wallets.Wallet1.BTC.address
User2 = $global:Wallets.Wallet2.BTC.address
User3 = $global:Wallets.Wallet3.BTC.address
CPUser = $global:Wallets.Wallet1.BTC.address
CPUPass = "c=$($global:Wallets.Wallet1.keys),ID=$Rigname1"
Pass1 = "c=$($global:Wallets.Wallet1.keys),ID=$Rigname1"
Pass2 = "c=$($global:Wallets.Wallet2.keys),ID=$Rigname2"
Pass3 = "c=$($global:Wallets.Wallet3.keys),ID=$Rigname3"
Location = $Location
SSL = $false
}
Expand Down
57 changes: 36 additions & 21 deletions algopools/zergpool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,34 @@ if ($Poolname -eq $Name) {

$Stat = Set-Stat -Name "$($Name)_$($Zergpool_Algorithm)_profit" -Value ([Double]$Estimate/$Divisor *(1-($Zergpool_Request.$_.fees/100)))
if ($Stat_Algo -eq "Day") {$CStat = $Stat.Live}else {$CStat = $Stat.$Stat_Algo}

If ($AltWallet1 -ne '') {$zWallet1 = $AltWallet1}
else {$zwallet1 = $Wallet1}
if ($AltWallet2 -ne '') {$zWallet2 = $AltWallet2}
else {$zwallet2 = $Wallet2}
if ($AltWallet3 -ne '') {$zWallet3 = $AltWallet3}
else {$zwallet3 = $Wallet3}
if ($AltPassword1 -ne '') {$zpass1 = $Altpassword1}
else {$zpass1 = $Passwordcurrency1}
if ($AltPassword2 -ne '') {$zpass2 = $AltPassword2}
else {$zpass2 = $Passwordcurrency2}
if ($AltPassword3 -ne '') {$zpass3 = $AltPassword3}
else {$zpass3 = $Passwordcurrency3}


$Pass1 = $global:Wallets.Wallet1.Keys
$User1 = $global:Wallets.Wallet1.BTC.address
$Pass2 = $global:Wallets.Wallet2.Keys
$User2 = $global:Wallets.Wallet2.BTC.address
$Pass3 = $global:Wallets.Wallet3.Keys
$User3 = $global:Wallets.Wallet3.BTC.address

$global:Wallets.AltWallet1.Keys | ForEach-Object {
if ($global:Wallets.AltWallet1.$_.Pools -contains $Name) {
$Pass1 = $_;
$User1 = $global:Wallets.AltWallet1.$_.address;
}
}
$global:Wallets.AltWallet2.Keys | ForEach-Object {
if ($global:Wallets.AltWallet2.$_.Pools -contains $Name) {
$Pass2 = $_;
$User2 = $global:Wallets.AltWallet2.$_.address;
}
}
$global:Wallets.AltWallet3.Keys | ForEach-Object {
if ($global:Wallets.AltWallet3.$_.Pools -contains $Name) {
$Pass3 = $_;
$User3 = $global:Wallets.AltWallet3.$_.address;
}
}

[PSCustomObject]@{
Priority = $Priorities.Pool_Priorities.$Name
Symbol = $Zergpool_Algorithm
Expand All @@ -49,14 +64,14 @@ if ($Poolname -eq $Name) {
Protocol = "stratum+tcp"
Host = $Zergpool_Host
Port = $Zergpool_Port
User1 = $zWallet1
User2 = $zWallet2
User3 = $zWallet3
CPUser = $zWallet1
CPUPass = "c=$zpass1,ID=$Rigname1$SWARMPass"
Pass1 = "c=$zpass1,ID=$Rigname1$SWARMPass"
Pass2 = "c=$zpass2,ID=$Rigname2$SWARMPass"
Pass3 = "c=$zpass3,ID=$Rigname3$SWARMPass"
User1 = $User1
User2 = $User2
User3 = $User3
CPUser = $User1
CPUPass = "c=$Pass1,ID=$Rigname1"
Pass1 = "c=$Pass1,ID=$Rigname1"
Pass2 = "c=$Pass2,ID=$Rigname2"
Pass3 = "c=$Pass3,ID=$Rigname3"
Location = $Location
SSL = $false
}
Expand Down
Loading

0 comments on commit 4fb3879

Please sign in to comment.