Skip to content

Commit

Permalink
v6.2.18
Browse files Browse the repository at this point in the history
Enhancements:
- Core: Minor code optimizations

Fixes:
- Web GUI / Configuration editor: Incorrect ProHashing registration link
- Web GUI / Switching log: Incorrect background color for stopped miners

Improvements:
- Core: No more unnecessary queries for DAG data when switching to donation run
- Core: Optimize number of queries for rates update
  • Loading branch information
UselessGuru committed Jul 19, 2024
1 parent 501cf80 commit d63a92a
Show file tree
Hide file tree
Showing 114 changed files with 5,203 additions and 1,549 deletions.
4 changes: 2 additions & 2 deletions Balances/HashCryptos.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\HashCryptos.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand Down
4 changes: 2 additions & 2 deletions Balances/HiveON.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\Hiveon.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand Down
4 changes: 2 additions & 2 deletions Balances/MiningDutch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\MiningDutch.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand Down
4 changes: 2 additions & 2 deletions Balances/MiningPoolHub.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\MiningPoolHub.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand Down
4 changes: 2 additions & 2 deletions Balances/NiceHash External.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\NiceHash Internal.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand Down
4 changes: 2 additions & 2 deletions Balances/NiceHash Internal.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\NiceHash Internal.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand Down
4 changes: 2 additions & 2 deletions Balances/ProHashing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\ProHashing.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand Down
4 changes: 2 additions & 2 deletions Balances/ZergPool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\ZergPool.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand Down
4 changes: 2 additions & 2 deletions Balances/Zpool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\Zpool.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand Down
6 changes: 3 additions & 3 deletions Brains/HashCryptos.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Brains\MiningDutch.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -95,7 +95,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
Name = $Algo
}
}
Remove-Variable Algo, Algorithm_Norm, BasePrice, StatName -ErrorAction Ignore
Remove-Variable Algo, AlgorithmNorm, BasePrice, StatName -ErrorAction Ignore

# Created here for performance optimization, minimize # of lookups
$CurPoolObjects = $PoolObjects.Where({ $_.Date -eq $Timestamp })
Expand Down
6 changes: 3 additions & 3 deletions Brains/MiningDutch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Brains\MiningDutch.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -96,7 +96,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
Name = $Algo
}
}
Remove-Variable Algo, Algorithm_Norm, BasePrice, StatName -ErrorAction Ignore
Remove-Variable Algo, AlgorithmNorm, BasePrice, StatName -ErrorAction Ignore

# Created here for performance optimization, minimize # of lookups
$CurPoolObjects = $PoolObjects.Where({ $_.Date -eq $Timestamp })
Expand Down
6 changes: 3 additions & 3 deletions Brains/ProHashing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Brains\ProHashing.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -104,7 +104,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
Name = $Algo
}
}
Remove-Variable Algo, Algorithm_Norm, BasePrice, Currency, Currencies, CurrenciesData, StatName -ErrorAction Ignore
Remove-Variable Algo, AlgorithmNorm, BasePrice, Currency, Currencies, CurrenciesData, StatName -ErrorAction Ignore

# Created here for performance optimization, minimize # of lookups
$CurPoolObjects = $PoolObjects.Where({ $_.Date -eq $Timestamp })
Expand Down
31 changes: 17 additions & 14 deletions Brains/ZPool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Brains\ZPool.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -70,21 +70,31 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
$AlgoData = ($AlgoData | ConvertTo-Json) -replace ': "(\d+\.?\d*)"', ': $1' -replace '": null', '": 0' | ConvertFrom-Json
$CurrenciesData = ($CurrenciesData | ConvertTo-Json) -replace ': "(\d+\.?\d*)"', ': $1' -replace '": null', '": 0' | ConvertFrom-Json

# SCC firo variant
If ($AlgoData.firopow) {
$AlgoData | Add-Member firopowscc $AlgoData.firopow -Force
$AlgoData.firopowscc.name = "firopowscc"
$AlgoData.PSObject.Properties.Remove("firopow")
}
If ($CurrenciesData.SCC.algo -eq "firopow" ) { $CurrenciesData.SCC.algo = "firopowscc" }

# Add currency and convert to array for easy sorting
$CurrenciesArray = [PSCustomObject[]]@()
$CurrenciesData.PSObject.Properties.Name.Where({ $CurrenciesData.$_.algo -and $CurrenciesData.$_.name -ne "Hashtap" }).ForEach(
{
$CurrenciesData.$_ | Add-Member Currency $(If ($CurrenciesData.$_.symbol) { $CurrenciesData.$_.symbol -replace '-.+$' } Else { $_ -replace '-.+$' })
$CurrenciesData.$_ | Add-Member CoinName $(If ($CurrenciesData.$_.name) { $CurrenciesData.$_.name } Else { $_ })
$CurrenciesData.$_ | Add-Member conversion_supported ([Boolean]($PoolConfig.Wallets.($CurrenciesData.$_.Currency) -or -not $CurrenciesData.$_.conversion_disabled))

$CurrenciesData.$_.PSObject.Properties.Remove("symbol")
$CurrenciesData.$_.PSObject.Properties.Remove("name")
$CurrenciesArray += $CurrenciesData.$_
If ($CurrenciesData.$_.CoinName -and $CurrenciesData.$_.Currency -and -not $Variables.CoinNames[$CurrenciesData.$_.Currency]) {
$AlgorithmNorm = $CurrenciesData.$_.algo

If ($CurrenciesData.$_.CoinName -and $CurrenciesData.$_.Currency -and -not $Variables.CurrencyAlgorithm[$AlgorithmNorm]) {
Try {
# Add coin name
[Void](Add-CoinName -Algorithm $CurrenciesData.$_.algo -Currency $CurrenciesData.$_.Currency -CoinName $CurrenciesData.$_.CoinName)
[Void](Add-CoinName -Algorithm $AlgorithmNorm -Currency $CurrenciesData.$_.Currency -CoinName $CurrenciesData.$_.CoinName)
}
Catch {
}
Expand All @@ -104,20 +114,13 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
}
)

# SCC firo variant
If ($AlgoData.firopow -and $AlgoData.firopow.Currency -eq "SCC") {
$AlgoData | Add-Member firopowscc $AlgoData.firopow -Force
$AlgoData.firopowscc.name = "firopowscc"
$AlgoData.PSObject.Properties.Remove("firopow")
}

ForEach ($Algo in $AlgoData.PSObject.Properties.Name) {
$AlgorithmNorm = Get-Algorithm $Algo
If ($AlgoData.$Algo.actual_last24h) { $AlgoData.$Algo.actual_last24h /= 1000 }
$BasePrice = If ($AlgoData.$Algo.actual_last24h) { $AlgoData.$Algo.actual_last24h } Else { $AlgoData.$Algo.estimate_last24h }

If ($Currency = $AlgoData.$Algo.Currency -replace '\s.*') {
If ($Currency -match $Variables.RegexAlgoHasDAG -and $AlgoData.$Algo.height -gt ($Variables.DAGdata.Currency.$Currency.BlockHeight)) {
If ($AlgorithmNorm -match $Variables.RegexAlgoHasDAG -and $AlgoData.$Algo.height -gt ($Variables.DAGdata.Currency.$Currency.BlockHeight)) {
# Keep DAG data data up to date
$DAGdata = (Get-DAGData -BlockHeight $AlgoData.$Algo.height -Currency $Currency -EpochReserve 2)
$DAGdata | Add-Member Date ([DateTime]::Now).ToUniversalTime() -Force
Expand Down Expand Up @@ -161,7 +164,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
Name = $Algo
}
}
Remove-Variable Algo, Algorithm_Norm, BasePrice, BestCurrency, CurrenciesArray, CurrenciesData, Currency, DAGdata -ErrorAction Ignore
Remove-Variable Algo, AlgorithmNorm, BasePrice, BestCurrency, CurrenciesArray, CurrenciesData, Currency, DAGdata -ErrorAction Ignore

# Created here for performance optimization, minimize # of lookups
$CurPoolObjects = $PoolObjects.Where({ $_.Date -eq $Timestamp })
Expand Down
18 changes: 8 additions & 10 deletions Brains/ZergPool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Brains\ZergPool.ps1
Version: 6.2.17
Version date: 2024/07/13
Version: 6.2.18
Version date: 2024/07/19
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -108,13 +108,11 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {

# Keep DAG data up to date
If ($AlgorithmNorm -match $Variables.RegexAlgoHasDAG -and $APIdata.$PoolName.height -gt $Variables.DAGdata.Currency.$Currency.BlockHeight) {
If ($Variables.DAGdata.Currency) {
$DAGdata = (Get-DAGData -BlockHeight $APIdata.$PoolName.height -Currency $PoolName -EpochReserve 2)
$DAGdata | Add-Member Date ([DateTime]::Now.ToUniversalTime()) -Force
$DAGdata | Add-Member Url $Uri
$Variables.DAGdata.Currency | Add-Member $PoolName $DAGdata -Force
$Variables.DAGdata.Updated | Add-Member $Uri ([DateTime]::Now).ToUniversalTime() -Force
}
$DAGdata = (Get-DAGData -BlockHeight $APIdata.$PoolName.height -Currency $PoolName -EpochReserve 2)
$DAGdata | Add-Member Date ([DateTime]::Now.ToUniversalTime()) -Force
$DAGdata | Add-Member Url $Uri
$Variables.DAGdata.Currency | Add-Member $PoolName $DAGdata -Force
$Variables.DAGdata.Updated | Add-Member $Uri ([DateTime]::Now).ToUniversalTime() -Force
}

$APIdata.$PoolName | Add-Member Fees $Config.PoolsConfig.$BrainName.DefaultFee -Force
Expand All @@ -141,7 +139,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
Name = $PoolName
}
}
Remove-Variable Algorithm_Norm, BasePrice, Currency, DAGdata, PoolName, StatName -ErrorAction Ignore
Remove-Variable AlgorithmNorm, BasePrice, Currency, DAGdata, PoolName, StatName -ErrorAction Ignore

# Created here for performance optimization, minimize # of lookups
$CurPoolObjects = $PoolObjects.Where({ $_.Date -eq $Timestamp })
Expand Down
21 changes: 20 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ Known issues:
- UG-Miner has issues with new Windows Terminal when the default terminal application is set to 'Let windows decide' or 'Windows Terminal'.
-> It is recommended to set it to 'Windows Console Host'

Changelog UG-Miner 6.2.18 2024/07/19
====================================

Enhancements:
- Core: Minor code optimizations

Fixes:
- Web GUI / Configuration editor: Incorrect ProHashing registration link
- Web GUI / Switching log: Incorrect background color for stopped miners

Improvements:
- Core: No more unnecessary queries for DAG data when switching to donation run
- Core: Optimize number of queries for rates update


Changelog UG-Miner 6.2.17 2024/07/13
====================================
Expand All @@ -16,7 +30,7 @@ Enhancements:
- Core / Includes.psm1: Minor code optimizations

Fixes:
- Core: 'Error in file 'Includes\Core.ps1' line 1001 detected. Restarting core...'
- Core: Error when request to pen firewall ports is declined ('Error in file 'Includes\Core.ps1' line 1001 detected. Restarting core...')
- Core: Watchdog timeout message incorrect (regression from 6.2.5)
- Core / Includes.psm1: Function 'Get-DAGdata' returning incorrect DAG size for IRON
- CPU Miners broken (regression from 6.2.16)
Expand Down Expand Up @@ -51,11 +65,16 @@ Changelog UG-Miner 6.2.15 2024/07/07
Enhancements:
- Core: Minor code optimizations
- Legacy GUI: Always select full table rows
- Miners: Remove miners that are incompatible with RTX306012GB

Fixes:
- Brain 'ZPool' not updating CurrencyAlgorithm list
- Legacy GUI: Incorrect watchdog count message when no corresponding pool watchdog exists
- Web GUI / 'Earnings and Balances': Zergpool balances wallet link incorrect

Miner updatwes:
- OneZeroMiner-v1.3.7


Changelog UG-Miner 6.2.14 2024/07/04
====================================
Expand Down
3 changes: 3 additions & 0 deletions Data/CoinNames.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
"ISO": "Isotopec",
"JGC": "Jagoan",
"JOSS": "JossNetwork",
"KAD": "Kadena",
"KAS": "Kaspa",
"KCN": "KylaCoin",
"KEY": "Keymaker",
Expand Down Expand Up @@ -219,6 +220,7 @@
"NOVO": "Novo",
"NTL": "Nautilus",
"NVC": "NovaCoin",
"NVOL": "Nvolve",
"NXL": "Nexellia",
"NYC": "NewyorkCoin",
"NYX": "Nyx",
Expand Down Expand Up @@ -269,6 +271,7 @@
"RVN": "RavenCoin",
"RXD": "Radiant",
"RYO": "RyoCurrency",
"SAFE": "SafeClassic",
"SATOX": "Sato",
"SCC": "Stakecube",
"SERO": "Sero",
Expand Down
6 changes: 5 additions & 1 deletion Data/CurrencyAlgorithm.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"BBTC": "Blake2s",
"BCA": "SHA256",
"BCH": "SHA256",
"BEAM": "BeamhashIII",
"BEAM": "BeamhashV3",
"BEL": "Scrypt",
"BELL": "Yespower",
"BGL": "Keccak",
Expand Down Expand Up @@ -189,6 +189,7 @@
"ISO": "YespowerIc",
"JGC": "Ghostrider",
"JOSS": "Allium",
"KAD": "Blake2S",
"KAS": "HeavyHashKaspa",
"KCN": "Flex",
"KEY": "MinotaurX",
Expand Down Expand Up @@ -243,6 +244,7 @@
"NTL": "Heavyhashkarlsen",
"NUKO": "Ethash",
"NVC": "Scrypt",
"NVOL": "KeccakC",
"NXL": "Heavyhashkaspa",
"NYC": "Scrypt",
"NYX": "Neoscrypt",
Expand Down Expand Up @@ -300,6 +302,7 @@
"RVN": "KawPow",
"RXD": "SHA512256d",
"RYO": "CryptonightGpu",
"SAFE": "Equihash1927",
"SATOX": "KawPow",
"SCASH": "RandomxScash",
"SCC": "FiroPowSCC",
Expand Down Expand Up @@ -373,6 +376,7 @@
"VPRM": "Equihash",
"VRSC": "VerusHash",
"VTC": "VertHash",
"WAF": "Aurum",
"WART": "JanusHash",
"WCN": "SHA256",
"WDC": "Scrypt",
Expand Down
Loading

0 comments on commit d63a92a

Please sign in to comment.