Skip to content

Commit

Permalink
v6.4.0
Browse files Browse the repository at this point in the history
Changes:
- Changed the names of configurations items to better reflect their purpose:
    ShowAccuracy -> ShowAccuracyColumn
    ShowCoinName -> ShowCoinNameColumn
    ShowCurrency -> ShowCurrencyColumn
    ShowEarning -> ShowEarningColumn
    ShowEarningBias -> ShowEarningBiasColumn
    ShowHashrate -> ShowHashrateColumn
    ShowMinerFee -> ShowMinerFeeColumn
    ShowPool -> ShowPoolColumn
    ShowPoolFee -> ShowPoolFeeColumn
    ShowProfit -> ShowProfitColumn
    ShowProfitBias -> ShowProfitBiasColumn
    ShowPowerConsumption -> ShowPowerConsumptionColumn
    ShowPowerCost -> ShowPowerCostColumn
    ShowUser -> ShowUserColumn
  Note: The configuration file gets automatically updated during update

Fixes:
- Core: Do not allow NULL valued hashrate values as valid samples
- Resolved issues with new Windows Terminal when the default terminal application is set to 'Let windows decide' or 'Windows Terminal'.

Miner updates:
- TTMiner-v2024.3.3b6
  • Loading branch information
UselessGuru committed Jan 11, 2025
1 parent 2035f7e commit 40539d9
Show file tree
Hide file tree
Showing 124 changed files with 724 additions and 2,096 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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

$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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

$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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

$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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
Expand Down
4 changes: 2 additions & 2 deletions Balances/NiceHash.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.ps1
Version: 6.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

If ($Config.NiceHashWallet) {
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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

$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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

$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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

$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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -123,7 +123,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
# Reset history if current estimate is not within +/- 1000% of 24hr stat price
If ($Stat = Get-Stat -Name $StatName) {
$Divisor = $PoolConfig.Variant."$PoolVariant".DivisorMultiplier * $AlgoData.$Algo.mbtc_mh_factor
If ($Stat.Day -and $LastPrice -gt 0 -and ($AlgoData.$Algo.estimate_current / $Divisor -lt $Stat.Day / 10 -or $AlgoData.$Algo.estimate_current / $Divisor-gt $Stat.Day * 10)) {
If ($Stat.Day -and $LastPrice -gt 0 -and ($AlgoData.$Algo.estimate_current / $Divisor -lt $Stat.Day / 10 -or $AlgoData.$Algo.estimate_current / $Divisor -gt $Stat.Day * 10)) {
Remove-Stat -Name $StatName
$PoolObjects = $PoolObjects.Where({ $_.Name -ne $Algo })
$PlusPrice = $LastPrice
Expand Down
9 changes: 5 additions & 4 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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -69,14 +69,15 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
}
} While (-not ($AlgoData -and $TotalStats) -and $APICallFails -lt $Config.PoolAPIallowedFailureCount)

($AlgoData.PSObject.Properties.Name).Where({ $TotalStats.result.algorithm -notcontains $_ }).ForEach({ $AlgoData.PSObject.Properties.Remove($_) })
$Timestamp = [DateTime]::Now.ToUniversalTime()

If ($AlgoData -and $TotalStats) {
# Change numeric string to numbers, some values are null
$AlgoData = ($AlgoData | ConvertTo-Json) -replace ': "(\d+\.?\d*)"', ': $1' -replace '": null', '": 0' | ConvertFrom-Json
$TotalStats = ($TotalStats | ConvertTo-Json) -replace ': "(\d+\.?\d*)"', ': $1' -replace '": null', '": 0' | ConvertFrom-Json

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

Expand Down Expand Up @@ -131,7 +132,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
# Reset history if current estimate is not within +/- 1000% of 24hr stat price
If ($Stat = Get-Stat -Name $StatName) {
$Divisor = $PoolConfig.Variant."$PoolVariant".DivisorMultiplier * $AlgoData.$Algo.mbtc_mh_factor
If ($Stat.Day -and $LastPrice -gt 0 -and ($AlgoData.$Algo.estimate_current / $Divisor -lt $Stat.Day / 10 -or $AlgoData.$Algo.estimate_current / $Divisor-gt $Stat.Day * 10)) {
If ($Stat.Day -and $LastPrice -gt 0 -and ($AlgoData.$Algo.estimate_current / $Divisor -lt $Stat.Day / 10 -or $AlgoData.$Algo.estimate_current / $Divisor -gt $Stat.Day * 10)) {
Remove-Stat -Name $StatName
$PoolObjects = $PoolObjects.Where({ $_.Name -ne $Algo })
$PlusPrice = $LastPrice
Expand Down
7 changes: 4 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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -83,6 +83,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
$Currencies = @($CurrenciesData.Where({ $_.algo -eq $Algo }).abbreviation)
$Currency = If ($Currencies.Count -eq 1) { $($Currencies[0] -replace '-.+' -replace ' \s+' -replace ' $') } Else { "" }
$AlgoData.$Algo | Add-Member Currency $Currency
$AlgoData.$Algo | Add-Member CoinName ([String]$Variables.CoinNames.($CurrenciesData.$_.Currency)) -Force
$AlgoData.$Algo | Add-Member Updated $Timestamp

# Reset history when stat file got removed
Expand Down Expand Up @@ -128,7 +129,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
# Reset history if current estimate is not within +/- 1000% of 24hr stat price
If ($Stat = Get-Stat -Name $StatName) {
$Divisor = $PoolConfig.Variant."$PoolVariant".DivisorMultiplier * $AlgoData.$Algo.mbtc_mh_factor
If ($Stat.Day -and $LastPrice -gt 0 -and ($AlgoData.$Algo.estimate_current / $Divisor -lt $Stat.Day / 10 -or $AlgoData.$Algo.estimate_current / $Divisor-gt $Stat.Day * 10)) {
If ($Stat.Day -and $LastPrice -gt 0 -and ($AlgoData.$Algo.estimate_current / $Divisor -lt $Stat.Day / 10 -or $AlgoData.$Algo.estimate_current / $Divisor -gt $Stat.Day * 10)) {
Remove-Stat -Name $StatName
$PoolObjects = $PoolObjects.Where({ $_.Name -ne $Algo })
$PlusPrice = $LastPrice
Expand Down
8 changes: 4 additions & 4 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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -77,7 +77,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
$CurrenciesData.PSObject.Properties.Name.Where({ $CurrenciesData.$_.algo -and $CurrenciesData.$_.name -notcontains "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 CoinName ([String]$Variables.CoinNames.($CurrenciesData.$_.Currency)) -Force
$CurrenciesData.$_ | Add-Member conversion_supported ([Boolean]($PoolConfig.Wallets.($CurrenciesData.$_.Currency) -or -not $CurrenciesData.$_.conversion_disabled))

$CurrenciesData.$_.PSObject.Properties.Remove("symbol")
Expand Down Expand Up @@ -182,7 +182,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
# Reset history if current estimate is not within +/- 1000% of 24hr stat price
If ($Stat = Get-Stat -Name $StatName) {
$Divisor = $PoolConfig.Variant."$PoolVariant".DivisorMultiplier * $AlgoData.$Algo.mbtc_mh_factor
If ($Stat.Day -and $LastPrice -gt 0 -and ($AlgoData.$Algo.estimate_current / $Divisor -lt $Stat.Day / 10 -or $AlgoData.$Algo.estimate_current / $Divisor-gt $Stat.Day * 10)) {
If ($Stat.Day -and $LastPrice -gt 0 -and ($AlgoData.$Algo.estimate_current / $Divisor -lt $Stat.Day / 10 -or $AlgoData.$Algo.estimate_current / $Divisor -gt $Stat.Day * 10)) {
Remove-Stat -Name $StatName
$PoolObjects = $PoolObjects.Where({ $_.Name -ne $Algo })
$PlusPrice = $LastPrice
Expand Down
10 changes: 5 additions & 5 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.3.24
Version date: 2025/01/05
Version: 6.4.0
Version date: 2025/01/11
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -67,8 +67,8 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
$AlgoData.PSObject.Properties.Name.Where({ $AlgoData.$_.algo -eq "Token" -or $_ -like "*-*" }).ForEach({ $AlgoData.PSObject.Properties.Remove($_) })
$AlgoData.PSObject.Properties.Name.Where({ $AlgoData.$_.algo }).ForEach(
{
$AlgoData.$_ | Add-Member Currency $(If ($AlgoData.$_.symbol) { $AlgoData.$_.symbol })
$AlgoData.$_ | Add-Member CoinName $(If ($AlgoData.$_.name) { $AlgoData.$_.name })
$AlgoData.$_ | Add-Member Currency [String]$AlgoData.$_.symbol
$AlgoData.$_ | Add-Member CoinName [String]$AlgoData.$_.name
$AlgoData.$_.PSObject.Properties.Remove("symbol")
$AlgoData.$_.PSObject.Properties.Remove("name")
}
Expand Down Expand Up @@ -154,7 +154,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
# Reset history if current estimate is not within +/- 1000% of 24hr stat price
If ($Stat = Get-Stat -Name $StatName) {
$Divisor = $PoolConfig.Variant."$PoolVariant".DivisorMultiplier * $AlgoData.$Algo.mbtc_mh_factor
If ($Stat.Day -and $LastPrice -gt 0 -and ($AlgoData.$Algo.estimate_current / $Divisor -lt $Stat.Day / 10 -or $AlgoData.$Algo.estimate_current / $Divisor-gt $Stat.Day * 10)) {
If ($Stat.Day -and $LastPrice -gt 0 -and ($AlgoData.$Algo.estimate_current / $Divisor -lt $Stat.Day / 10 -or $AlgoData.$Algo.estimate_current / $Divisor -gt $Stat.Day * 10)) {
Remove-Stat -Name $StatName
$PoolObjects = $PoolObjects.Where({ $_.Name -ne $Algo })
$PlusPrice = $LastPrice
Expand Down
31 changes: 29 additions & 2 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,34 @@
Known issues:
- Balance Tracker / Earnings Graph: Date change does not respect local time zone (accumulated data is calculated in UTC time)
- 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.4.0 2025/01/11
===================================

Changes:
- Changed the names of configurations items to better reflect their purpose:
ShowAccuracy -> ShowAccuracyColumn
ShowCoinName -> ShowCoinNameColumn
ShowCurrency -> ShowCurrencyColumn
ShowEarning -> ShowEarningColumn
ShowEarningBias -> ShowEarningBiasColumn
ShowHashrate -> ShowHashrateColumn
ShowMinerFee -> ShowMinerFeeColumn
ShowPool -> ShowPoolColumn
ShowPoolFee -> ShowPoolFeeColumn
ShowProfit -> ShowProfitColumn
ShowProfitBias -> ShowProfitBiasColumn
ShowPowerConsumption -> ShowPowerConsumptionColumn
ShowPowerCost -> ShowPowerCostColumn
ShowUser -> ShowUserColumn
Note: The configuration file gets automatically updated during update

Fixes:
- Core: Do not allow NULL valued hashrate values as valid samples
- Resolved issues with new Windows Terminal when the default terminal application is set to 'Let windows decide' or 'Windows Terminal'.

Miner updates:
- TTMiner-v2024.3.3b6


Changelog UG-Miner 6.3.24 2025/01/05
Expand Down
1 change: 1 addition & 0 deletions Data/Algorithms.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@
"theopennetwork": "SHA256ton",
"toncoin": "SHA256ton",
"tonpow": "SHA256ton",
"tuskev1": "RandomTuske",
"ubq": "UbqHash",
"ubqhash": "UbqHash",
"veil": "ProgPowVeil",
Expand Down
6 changes: 6 additions & 0 deletions Data/CoinNames.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"EVR": "Evrmore",
"EXP": "Expanse",
"FB": "Fractal",
"FBX": "Fairbrix",
"FCH": "Freecash",
"FEC": "Ferrite",
"FIRO": "Firo",
Expand Down Expand Up @@ -121,6 +122,7 @@
"IRON": "Ironfish",
"JKC": "Junk",
"JOSS": "JossNetwork",
"KAS": "Kaspa",
"KCN": "Kyla",
"KIIRO": "KiiroCoin",
"KLS": "Karlsen",
Expand Down Expand Up @@ -195,6 +197,7 @@
"RYO": "Ryo",
"SATOX": "Sato",
"SCC": "StakeCubeCoin",
"SDR": "Sedra",
"SERO": "Sero",
"SHND": "Stronghands",
"SKY": "Skydoge",
Expand All @@ -209,12 +212,14 @@
"SQCN": "Squishy",
"SUGAR": "Sugar",
"SWAMP": "Swamp",
"TABO": "Tabo",
"TAFT": "Cointaft",
"TAJ": "Taj",
"TDC": "Tide",
"TLS": "Telestai",
"TRC": "Terra",
"TROLL": "Troll",
"TSK": "Tuske",
"TZC": "Trezar",
"UFO": "Ufo",
"UIS": "Unitus",
Expand Down Expand Up @@ -255,6 +260,7 @@
"ZEC": "Zcash",
"ZEN": "Horizen",
"ZENYX": "Zenyx",
"ZEPH": "Zephyr",
"ZER": "Zero",
"ZOC": "1"
}
3 changes: 3 additions & 0 deletions Data/CurrencyAlgorithm.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
"EXO": "X16r",
"EXP": "Ethash",
"FB": "SHA256",
"FBX": "Scrypt",
"FCH": "SHA256",
"FEC": "Scrypt",
"FIRO": "FiroPow",
Expand Down Expand Up @@ -319,6 +320,7 @@
"SCASH": "RandomxScash",
"SCC": "SCCpow",
"SCRIV": "Tribus",
"SDR": "HeavyHashKaspa",
"SERO": "ProgPowSero",
"SHAHE": "X16rv2",
"SHND": "SHA256",
Expand Down Expand Up @@ -347,6 +349,7 @@
"SUBI": "Ghostrider",
"SUGAR": "YespowerSugar",
"SWAMP": "Yespower",
"TABO": "RandomX",
"TAFT": "Ghostrider",
"TAJ": "Blake2s",
"TCC": "Ghostrider",
Expand Down
Loading

0 comments on commit 40539d9

Please sign in to comment.