Skip to content

Commit

Permalink
Rename pool ZelLabs to FluxPools
Browse files Browse the repository at this point in the history
- also add FLUX to the coinsdb
- fixes issue #1563
  • Loading branch information
RainbowMiner committed Apr 30, 2021
1 parent f4fc589 commit 2fd09d6
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 49 deletions.
8 changes: 4 additions & 4 deletions Balances/ZelLabs.ps1 → Balances/FluxPools.ps1
Expand Up @@ -7,9 +7,9 @@ param(
$Name = Get-Item $MyInvocation.MyCommand.Path | Select-Object -ExpandProperty BaseName

$Pools_Data = @(
[PSCustomObject]@{symbol = "TCR"; port = 2200; fee = 0.5; rpc = "tcr"; regions = @("eu","us")}
[PSCustomObject]@{symbol = "FIRO"; port = 7017; fee = 1.0; rpc = "zcoin"; regions = @("eu","us"); altsymbol = "XZC"}
[PSCustomObject]@{symbol = "ZEL"; port = 7011; fee = 1.0; rpc = "zel"; regions = @("eu","us")}
[PSCustomObject]@{symbol = "FLUX"; port = @(7011,7111); fee = 1.0; rpc = "flux"; regions = @("eu","us"); altsymbol = "ZEL"}
[PSCustomObject]@{symbol = "TCR"; port = @(2200); fee = 0.5; rpc = "tcr"; regions = @("eu","us")}
[PSCustomObject]@{symbol = "FIRO"; port = @(7017); fee = 1.0; rpc = "zcoin"; regions = @("eu","us"); altsymbol = "XZC"}
)

$Pools_Data | Where-Object {($Config.Pools.$Name.Wallets."$($_.symbol)" -or ($_.altsymbol -and $Config.Pools.$Name.Wallets."$($_.altsymbol)")) -and (-not $Config.ExcludeCoinsymbolBalances.Count -or $Config.ExcludeCoinsymbolBalances -notcontains "$($_.symbol)")} | Foreach-Object {
Expand All @@ -23,7 +23,7 @@ $Pools_Data | Where-Object {($Config.Pools.$Name.Wallets."$($_.symbol)" -or ($_.
$Pool_Request = [PSCustomObject]@{}

try {
$Pool_Request = Invoke-RestMethodAsync "https://$($Pool_RpcPath).zellabs.net/api/worker_stats2?address=$($Pool_Wallet)&dataPoints=720&numSeconds=0" -tag $Name -cycletime 240 -timeout 30
$Pool_Request = Invoke-RestMethodAsync "https://$($Pool_RpcPath).fluxpools.net/api/worker_stats2?address=$($Pool_Wallet)&dataPoints=720&numSeconds=0" -tag $Name -cycletime 240 -timeout 30
if (-not $Pool_Request) {
Write-Log -Level Info "Pool Balance API ($Name) for $($Pool_Currency) returned nothing. "
} else {
Expand Down
6 changes: 3 additions & 3 deletions Data/PoolsConfigDefault.ps1
Expand Up @@ -107,6 +107,9 @@
"FlexPool" = [PSCustomObject]@{
Currencies=@("ETH")
}
"FluxPools" = [PSCustomObject]@{
Currencies=@("FLUX","FIRO","TCR")
}
"FlyPool" = [PSCustomObject]@{
Currencies=@("BEAM","YEC")
}
Expand Down Expand Up @@ -405,9 +408,6 @@
"WoolyPoolySolo" = [PSCustomObject]@{
Currencies=@("CFX","ETH","VEIL")
}
"ZelLabs" = [PSCustomObject]@{
Currencies=@("TCR","ZEL")
}
"ZergPool" = [PSCustomObject]@{
Fields=[PSCustomObject]@{AECurrency="";Penalty=12}
SetupFields=[PSCustomObject]@{AECurrency="Optionally define your autoexchange currency symbol"}
Expand Down
2 changes: 1 addition & 1 deletion Data/coinsdb.json

Large diffs are not rendered by default.

79 changes: 41 additions & 38 deletions Pools/ZelLabs.ps1 → Pools/FluxPools.ps1
Expand Up @@ -19,9 +19,9 @@ $Name = Get-Item $MyInvocation.MyCommand.Path | Select-Object -ExpandProperty Ba
@("eu","us") | Foreach-Object {$Pool_RegionsTable.$_ = Get-Region $_}

$Pools_Data = @(
[PSCustomObject]@{symbol = "TCR"; port = 2200; fee = 0.5; rpc = "tcr"; regions = @("eu","us")}
[PSCustomObject]@{symbol = "FIRO"; port = 7017; fee = 1.0; rpc = "zcoin"; regions = @("eu","us"); altsymbol = "XZC"}
[PSCustomObject]@{symbol = "ZEL"; port = 7011; fee = 1.0; rpc = "zel"; regions = @("eu","us")}
[PSCustomObject]@{symbol = "FLUX"; port = @(7011,7111); fee = 1.0; rpc = "flux"; regions = @("eu","us"); altsymbol = "ZEL"}
[PSCustomObject]@{symbol = "TCR"; port = @(2200); fee = 0.5; rpc = "tcr"; regions = @("eu","us")}
[PSCustomObject]@{symbol = "FIRO"; port = @(7017); fee = 1.0; rpc = "zcoin"; regions = @("eu","us"); altsymbol = "XZC"}
)

$Pools_Requests = [hashtable]@{}
Expand All @@ -30,7 +30,6 @@ $Pools_Data | Where-Object {$Wallets."$($_.symbol)" -or ($_.altsymbol -and $Wall
$Pool_Coin = Get-Coin $_.symbol
$Pool_Currency = $_.symbol
$Pool_Fee = $_.fee
$Pool_Port = $_.port
$Pool_RpcPath = $_.rpc
$Pool_Name = $Pool_RpcPath

Expand All @@ -50,7 +49,7 @@ $Pools_Data | Where-Object {$Wallets."$($_.symbol)" -or ($_.altsymbol -and $Wall

if ($ok -and -not $InfoOnly) {
try {
$Pool_Request = Invoke-RestMethodAsync "https://$($Pool_RpcPath).zellabs.net/api/homestats" -tag $Name -cycletime 240 -timeout 30
$Pool_Request = Invoke-RestMethodAsync "https://$($Pool_RpcPath).fluxpools.net/api/homestats" -tag $Name -cycletime 240 -timeout 30
if (-not ($Pool_Request.pools.PSObject.Properties.Name | Measure-Object).Count) {$ok = $false}
else {
$Pool_Name = "$($Pool_Request.pools.PSObject.Properties.Name | Select-Object -First 1)"
Expand Down Expand Up @@ -79,39 +78,43 @@ $Pools_Data | Where-Object {$Wallets."$($_.symbol)" -or ($_.altsymbol -and $Wall

if ($ok -or $InfoOnly) {
foreach($Pool_Region in $Pool_Regions) {
[PSCustomObject]@{
Algorithm = $Pool_Algorithm_Norm
Algorithm0 = $Pool_Algorithm_Norm
CoinName = $Pool_Coin.Name
CoinSymbol = $Pool_Currency
Currency = $Pool_Currency
Price = 0
StablePrice = 0
MarginOfError = 0
Protocol = "stratum+tcp"
Host = "$($Pool_Region)-$($Pool_RpcPath).zellabs.net"
Port = $Pool_Port
User = "$($Pool_Wallet).{workername:$Worker}"
Pass = "x"
Region = $Pool_RegionsTable.$Pool_Region
SSL = $false
Updated = $Stat.Updated
PoolFee = $Pool_Fee
Workers = $Pool_Request.pools.$Pool_Name.workerCount
Hashrate = $Stat.HashRate_Live
TSL = $Pool_TSL
BLK = $Stat.BlockRate_Average
WTM = $true
Name = $Name
Penalty = 0
PenaltyFactor = 1
Disabled = $false
HasMinerExclusions = $false
Price_Bias = 0.0
Price_Unbias = 0.0
Wallet = $Pool_Wallet
Worker = "{workername:$Worker}"
Email = $Email
$SSL = $false
foreach($Pool_Port in $_.port) {
[PSCustomObject]@{
Algorithm = $Pool_Algorithm_Norm
Algorithm0 = $Pool_Algorithm_Norm
CoinName = $Pool_Coin.Name
CoinSymbol = $Pool_Currency
Currency = $Pool_Currency
Price = 0
StablePrice = 0
MarginOfError = 0
Protocol = "stratum+$(if ($SSL) {"ssl"} else {"tcp"})"
Host = "$($Pool_Region)-$($Pool_RpcPath).zellabs.net"
Port = $Pool_Port
User = "$($Pool_Wallet).{workername:$Worker}"
Pass = "x"
Region = $Pool_RegionsTable.$Pool_Region
SSL = $SSL
Updated = $Stat.Updated
PoolFee = $Pool_Fee
Workers = $Pool_Request.pools.$Pool_Name.workerCount
Hashrate = $Stat.HashRate_Live
TSL = $Pool_TSL
BLK = $Stat.BlockRate_Average
WTM = $true
Name = $Name
Penalty = 0
PenaltyFactor = 1
Disabled = $false
HasMinerExclusions = $false
Price_Bias = 0.0
Price_Unbias = 0.0
Wallet = $Pool_Wallet
Worker = "{workername:$Worker}"
Email = $Email
}
$SSL = $true
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -23,7 +23,7 @@ Features: easy setup wizard with adhoc working default (no editing of files need

- **Multi-Platform (AMD, NVIDIA, CPU) on Windows and Linux**
- **Profit auto-switch between mining programs and [algorithm](https://rbminer.net/algorithms/) for GPUs & CPUs (optimized one for each vendor vs. one for each possible device combination)**
- **Profit auto-switch between pools (2Miners, 572133Club, 666Pool, 6Block, Acepool, AHashPool, BaikalMiner, BeePool, Binance, BlockCruncher, BlockMasters, Bsod, BtcPrivate, Cortexmint, EthashPool, Ethermine, [ezil.me](https://ezil.me/?p=dcf9), F2pool, FairPool, FlexPool, FlyPool, GosCx, GrinMint, Hashcryptos, Hashpool, HashVault, [HeroMiners](https://herominers.com), Hiveon, Icemining, LeafPool, LuckPool, LuckyPool, MinerRocks, MiningDutch, MiningPoolHub, MiningPoolOvh, [MiningRigRentals](https://www.miningrigrentals.com?ref=2598069), Mintpond, MoneroOcean, Nanopool, [Nicehash](https://www.nicehash.com/?refby=c402ea4d-9203-414c-b96e-526e34ad20e1), PhiPhiPool, Poolin, Poolium, PoolmineXyz, Ravenminer, SoloPool, SparkPool, Sunpool, SuprNova, unMineable, UUpool, WoolyPooly, ZelLabs, Zergpool and Zpool)**
- **Profit auto-switch between pools (2Miners, 572133Club, 666Pool, 6Block, Acepool, AHashPool, BaikalMiner, BeePool, Binance, BlockCruncher, BlockMasters, Bsod, BtcPrivate, Cortexmint, EthashPool, Ethermine, [ezil.me](https://ezil.me/?p=dcf9), F2pool, FairPool, FlexPool, FluxPools, FlyPool, GosCx, GrinMint, Hashcryptos, Hashpool, HashVault, [HeroMiners](https://herominers.com), Hiveon, Icemining, LeafPool, LuckPool, LuckyPool, MinerRocks, MiningDutch, MiningPoolHub, MiningPoolOvh, [MiningRigRentals](https://www.miningrigrentals.com?ref=2598069), Mintpond, MoneroOcean, Nanopool, [Nicehash](https://www.nicehash.com/?refby=c402ea4d-9203-414c-b96e-526e34ad20e1), PhiPhiPool, Poolin, Poolium, PoolmineXyz, Ravenminer, SoloPool, SparkPool, Sunpool, SuprNova, unMineable, UUpool, WoolyPooly, Zergpool and Zpool)**
- **Integrate own and custom pools**
- **Profit calculation, including real cost of electricity per miner**
- **Uses the top actual available miner programs (Bminer, Ccminer, Claymore, CryptoDredge, Dstm, EnemyZ, Ewbf, Gminer, NBminer, Sgminer, SrbMiner, T-Rex, Xmrig and many more)**
Expand Down Expand Up @@ -234,7 +234,7 @@ Alternative: start as Linux `screen`:

### Done!

<details><summary>Valid poolnames</summary>2Miners, 2MinersSolo, 572133Club, 666Pool, 6Block, Acepool, AHashPool, Aionmine, BaikalMine, BaikalMineSolo, BeePool, Binance, BlockMasters, BlockMastersCoins, Bsod, BsodParty, BsodSolo, BtcPrivate, Cortexmint, CpuPool, EthashPool, Ethermine, Ezil, F2pool, FairPool, FlexPool, FlyPool, GosCx, GosCxParty, GosCxSolo, Grinmint, Hashcryptos, Hashpool, HashVault, HeroMiners, Hiveon, Icemining, LeafPool, LuckPool, LuckyPool, Luxor, MinerRocks, Minexmr, MiningDutch, MiningDutchCoins, MiningPoolHub, MiningPoolHubCoins, MiningPoolOvh, MiningRigRentals, Mintpond, MoneroOcean, Nanopool, NiceHash, NLpool, PhiPhiPool, Poolin, Poolium, PoolmineXyz, PoolmineXyzSolo, PoolSexy, ProHashing, Ravenminer, RPlant, SoloPool, SparkPool, Sunpool, SuprNova, Tecracoin, unMineable, UUpool, WhatToMine, WoolyPooly, WoolyPoolySolo, ZelLabs, ZergPool, ZergPoolCoins, ZergPoolCoinsParty, ZergPoolCoinsSolo, ZergPoolParty, ZergPoolSolo, Zpool, ZpoolCoins</details>
<details><summary>Valid poolnames</summary>2Miners, 2MinersSolo, 572133Club, 666Pool, 6Block, Acepool, AHashPool, Aionmine, BaikalMine, BaikalMineSolo, BeePool, Binance, BlockMasters, BlockMastersCoins, Bsod, BsodParty, BsodSolo, BtcPrivate, Cortexmint, CpuPool, EthashPool, Ethermine, Ezil, F2pool, FairPool, FlexPool, FluxPools, FlyPool, GosCx, GosCxParty, GosCxSolo, Grinmint, Hashcryptos, Hashpool, HashVault, HeroMiners, Hiveon, Icemining, LeafPool, LuckPool, LuckyPool, Luxor, MinerRocks, Minexmr, MiningDutch, MiningDutchCoins, MiningPoolHub, MiningPoolHubCoins, MiningPoolOvh, MiningRigRentals, Mintpond, MoneroOcean, Nanopool, NiceHash, NLpool, PhiPhiPool, Poolin, Poolium, PoolmineXyz, PoolmineXyzSolo, PoolSexy, ProHashing, Ravenminer, RPlant, SoloPool, SparkPool, Sunpool, SuprNova, Tecracoin, unMineable, UUpool, WhatToMine, WoolyPooly, WoolyPoolySolo, ZergPool, ZergPoolCoins, ZergPoolCoinsParty, ZergPoolCoinsSolo, ZergPoolParty, ZergPoolSolo, Zpool, ZpoolCoins</details>
<details><summary>Valid algorithms</summary> Balloon, Bitcore, Blakecoin, Blake2s, BlakeVanilla, C11, Cortex, CryptoNightV8, Cuckaroo29, Cuckaroo29s, Ethash, X11, Decred, Equihash, Equihash144, Equihash192, Equihash-BTG, Groestl, Hex, HMQ1725, HSR, JHA, Keccak, Lbry, Lyra2RE2, Lyra2z, MyriadGroestl, NeoScrypt, Pascal, Phi, Phi2, Polytimos, Quark, Qubit, Scrypt, SHA256, Sib, Skunk, Skein, Tensority, Timetravel, Tribus, Veltor, X11, X12, X11evo, X16R, X16S, X17, X18, X21s, X22i, Yescrypt and many more: https://rbminer.net/algorithms/</details>

## HOTKEYS
Expand Down Expand Up @@ -387,6 +387,7 @@ If "EnableServerPools" is set to "1", the client will download the server's pool
<details><summary>F2Pool</summary> https://www.f2pool.com/ no auto-exchange, either enter your f2pool username as wallet address, or a real wallet address for each coin you want to mine. Set in pools configuration or edit pools.config.txt</details>
<details><summary>FairPool</summary> https://fairpool.xyz/ no auto-exchange, a separate wallet address is needed for each coin you want to mine. Set in pools configuration or edit pools.config.txt</details>
<details><summary>FlexPool</summary> https://flexpool.io/ no auto-exchange, pays in ETH. Set wallet in pools configuration or edit pools.config.txt</details>
<details><summary>FluxPools</summary> https://fluxpools.net/ no auto-exchange, mining TCR, FIRO and FLUX, a separate wallet address is needed for each coin you want to mine. Set in pools configuration or edit pools.config.txt</details>
<details><summary>Flypool</summary> https://flypool.org/ no auto-exchange, a separate wallet address is needed for each coin (ZEC, YEC) you want to mine. Set in pools configuration or edit pools.config.txt</details>
<details><summary>GosCx</summary> https://gos.cx/ no auto-exchange, a separate wallet address is needed for each coin you want to mine. Set in pools configuration or edit pools.config.txt</details>
<details><summary>GosCxParty</summary> https://gos.cx/ no auto-exchange, a separate wallet address is needed for each coin you want to mine solo together with others. Set in pools configuration or edit pools.config.txt. Set "PartyPassword" in pools.config.txt for your group</details>
Expand Down Expand Up @@ -435,7 +436,6 @@ If "EnableServerPools" is set to "1", the client will download the server's pool
<details><summary>UUPool</summary> https://www.uupool.com/ no auto-exchange, a separate wallet is needed for each coin you want to mine. Set in pools configuration or edit pools.config.txt</details>
<details><summary>WoolyPooly</summary> https://www.woolypooly.com/ no auto-exchange, a separate wallet address is needed for each coin (ETH, CFX, VEIL and more) you want to mine. Set in pools configuration or edit pools.config.txt</details>
<details><summary>WoolyPoolySolo</summary> https://www.woolypooly.com/ no auto-exchange, a separate wallet address is needed for each coin (ETH, CFX, VEIL and more) you want to mine solo. Set in pools configuration or edit pools.config.txt</details>
<details><summary>ZelLabs</summary> https://test.zellabs.net/pools/ no auto-exchange, mining TCR, XZC and ZEL, a separate wallet address is needed for each coin you want to mine. Set in pools configuration or edit pools.config.txt</details>
<details><summary>ZergPool</summary> https://www.zergpool.com/ auto-exchange and payout in BTC, LTC or any coin, that is listed at the pool. Pool will automatically select the most profitable coin. Switching will be by algorithm.</details>
<details><summary>ZergPoolParty</summary> https://www.zergpool.com/ auto-exchange and payout in BTC, LTC or any coin, that is listed at the pool. Pool will automatically select the most profitable coin. Switching will be by algorithm. Set "PartyPassword" in pools.config.txt for your group</details>
<details><summary>ZergPoolSolo</summary> https://www.zergpool.com/ auto-exchange and payout in BTC, LTC or any coin, that is listed at the pool. Pool will automatically select the most profitable coin. Switching will be by algorithm. Solo mining!</details>
Expand Down

0 comments on commit 2fd09d6

Please sign in to comment.