Skip to content

Commit

Permalink
v6.1.12
Browse files Browse the repository at this point in the history
Improvements:
- Minor code optimizations
- Legacy- & web GUI: Improve button handling and status updates

Miner updates:
- TeamBlackMiner-v2.19
  • Loading branch information
UselessGuru committed Feb 25, 2024
1 parent 629daef commit 81c56b5
Show file tree
Hide file tree
Showing 110 changed files with 2,724 additions and 2,641 deletions.
6 changes: 3 additions & 3 deletions Balances/HashCryptos.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\HashCryptos.ps1
Version: 6.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
$PayoutCurrency = $Config.PoolsConfig.$Name.PayoutCurrency
$Wallet = $Config.PoolsConfig.$Name.Wallets.$PayoutCurrency
$RetryCount = $Config.PoolsConfig.$Name.PoolAPIAllowedFailureCount
Expand Down
6 changes: 3 additions & 3 deletions Balances/HiveON.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\Hiveon.ps1
Version: 6.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName

$PoolConfig = $Config.PoolsConfig.$Name
$PoolConfig.Wallets.psBase.Keys.Where({ $_ -in @("BTC", "ETC", "RVN") }).ForEach(
Expand Down
6 changes: 3 additions & 3 deletions Balances/MiningDutch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\MiningDutch.ps1
Version: 6.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName

$RetryInterval = $Config.PoolsConfig.$Name.PoolAPIRetryInterval
$PoolAPITimeout = $Config.PoolsConfig.$Name.PoolAPITimeout
Expand Down
6 changes: 3 additions & 3 deletions Balances/MiningPoolHub.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\MiningPoolHub.ps1
Version: 6.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName

$RetryInterval = $Config.PoolsConfig.$Name.PoolAPIRetryInterval
$PoolAPITimeout = $Config.PoolsConfig.$Name.PoolAPITimeout
Expand Down
6 changes: 3 additions & 3 deletions Balances/NiceHash External.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\NiceHash Internal.ps1
Version: 6.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
$PoolConfig = $Config.PoolsConfig.NiceHash
$PayoutCurrency = $PoolConfig.Variant.$Name.PayoutCurrency
$Wallet = $Config.PoolsConfig.NiceHash.Variant.$Name.Wallets.$PayoutCurrency
Expand Down
6 changes: 3 additions & 3 deletions Balances/NiceHash Internal.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\NiceHash Internal.ps1
Version: 6.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
$PoolConfig = $Config.PoolsConfig.NiceHash
$PayoutCurrency = $PoolConfig.Variant.$Name.PayoutCurrency
$Wallet = $PoolConfig.Variant.$Name.Wallets.$PayoutCurrency
Expand Down
6 changes: 3 additions & 3 deletions Balances/ProHashing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\ProHashing.ps1
Version: 6.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
$Url = "https://prohashing.com/customer/dashboard"

$RetryCount = $Config.PoolsConfig.$Name.PoolAPIAllowedFailureCount
Expand Down
6 changes: 3 additions & 3 deletions Balances/ZergPool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\ZergPool.ps1
Version: 6.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
$RetryInterval = $Config.PoolsConfig.$Name.PoolAPIRetryInterval

$Config.PoolsConfig.$Name.Wallets.Keys.ForEach(
Expand Down
6 changes: 3 additions & 3 deletions Balances/Zpool.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<#
Product: UG-Miner
File: \Balances\Zpool.ps1
Version: 6.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

$Name = (Get-Item $MyInvocation.MyCommand.Path).BaseName
$Name = [String](Get-Item $MyInvocation.MyCommand.Path).BaseName
$RetryInterval = $Config.PoolsConfig.$Name.PoolAPIRetryInterval

$Config.PoolsConfig.$Name.Wallets.Keys.ForEach(
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.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -135,7 +135,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
$PoolObjects = @($PoolObjects.Where({ $_.Date -ge $Timestamp.AddMinutes( - ($PoolConfig.BrainConfig.SampleSizeMinutes + 10)) }))
}
Catch {
Write-Message -Level Error "Error in file $(($_.InvocationInfo.ScriptName -split "\\" | Select-Object -Last 2) -join "\") line $($_.InvocationInfo.ScriptLineNumber) detected. Restarting brain..."
Write-Message -Level Error "Error in file '$(($_.InvocationInfo.ScriptName -split "\\" | Select-Object -Last 2) -join "\")' line $($_.InvocationInfo.ScriptLineNumber) detected. Restarting core..."
"$(Get-Date -Format "yyyy-MM-dd_HH:mm:ss")" >> "Logs\Brain_$($BrainName)_Error.txt"
$_.Exception | Format-List -Force >> "Logs\Brain_$($BrainName)_Error.txt"
$_.InvocationInfo | Format-List -Force >> "Logs\Brain_$($BrainName)_Error.txt"
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.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -136,7 +136,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
$PoolObjects = @($PoolObjects.Where({ $_.Date -ge $Timestamp.AddMinutes( - ($PoolConfig.BrainConfig.SampleSizeMinutes + 10)) }))
}
Catch {
Write-Message -Level Error "Error in file $(($_.InvocationInfo.ScriptName -split "\\" | Select-Object -Last 2) -join "\") line $($_.InvocationInfo.ScriptLineNumber) detected. Restarting brain..."
Write-Message -Level Error "Error in file '$(($_.InvocationInfo.ScriptName -split "\\" | Select-Object -Last 2) -join "\")' line $($_.InvocationInfo.ScriptLineNumber) detected. Restarting core..."
"$(Get-Date -Format "yyyy-MM-dd_HH:mm:ss")" >> "Logs\Brain_$($BrainName)_Error.txt"
$_.Exception | Format-List -Force >> "Logs\Brain_$($BrainName)_Error.txt"
$_.InvocationInfo | Format-List -Force >> "Logs\Brain_$($BrainName)_Error.txt"
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.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -145,7 +145,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
$PoolObjects = @($PoolObjects.Where({ $_.Date -ge $Timestamp.AddMinutes( - ($PoolConfig.BrainConfig.SampleSizeMinutes + 10)) }))
}
Catch {
Write-Message -Level Error "Error in file $(($_.InvocationInfo.ScriptName -split "\\" | Select-Object -Last 2) -join "\") line $($_.InvocationInfo.ScriptLineNumber) detected. Restarting brain..."
Write-Message -Level Error "Error in file '$(($_.InvocationInfo.ScriptName -split "\\" | Select-Object -Last 2) -join "\")' line $($_.InvocationInfo.ScriptLineNumber) detected. Restarting core..."
"$(Get-Date -Format "yyyy-MM-dd_HH:mm:ss")" >> "Logs\Brain_$($BrainName)_Error.txt"
$_.Exception | Format-List -Force >> "Logs\Brain_$($BrainName)_Error.txt"
$_.InvocationInfo | Format-List -Force >> "Logs\Brain_$($BrainName)_Error.txt"
Expand Down
6 changes: 3 additions & 3 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.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -204,7 +204,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
$PoolObjects = @($PoolObjects.Where({ $_.Date -ge $Timestamp.AddMinutes( - ($PoolConfig.BrainConfig.SampleSizeMinutes + 10)) }))
}
Catch {
Write-Message -Level Error "Error in file $(($_.InvocationInfo.ScriptName -split "\\" | Select-Object -Last 2) -join "\") line $($_.InvocationInfo.ScriptLineNumber) detected. Restarting brain..."
Write-Message -Level Error "Error in file 'Brains\$BrainName.ps1' line $($_.InvocationInfo.ScriptLineNumber) detected. Restarting brain..."
"$(Get-Date -Format "yyyy-MM-dd_HH:mm:ss")" >> "Logs\Brain_$($BrainName)_Error.txt"
$_.Exception | Format-List -Force >> "Logs\Brain_$($BrainName)_Error.txt"
$_.InvocationInfo | Format-List -Force >> "Logs\Brain_$($BrainName)_Error.txt"
Expand Down
6 changes: 3 additions & 3 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.1.11
Version date: 2024/02/20
Version: 6.1.12
Version date: 2024/02/25
#>

using module ..\Includes\Include.psm1
Expand Down Expand Up @@ -184,7 +184,7 @@ While ($PoolConfig = $Config.PoolsConfig.$BrainName) {
$PoolObjects = @($PoolObjects.Where({ $_.Date -ge $Timestamp.AddMinutes( - ($PoolConfig.BrainConfig.SampleSizeMinutes + 10)) }))
}
Catch {
Write-Message -Level Error "Error in file $(($_.InvocationInfo.ScriptName -split "\\" | Select-Object -Last 2) -join "\") line $($_.InvocationInfo.ScriptLineNumber) detected. Restarting brain..."
Write-Message -Level Error "Error in file '$(($_.InvocationInfo.ScriptName -split "\\" | Select-Object -Last 2) -join "\")' line $($_.InvocationInfo.ScriptLineNumber) detected. Restarting core..."
"$(Get-Date -Format "yyyy-MM-dd_HH:mm:ss")" >> "Logs\Brain_$($BrainName)_Error.txt"
$_.Exception | Format-List -Force >> "Logs\Brain_$($BrainName)_Error.txt"
$_.InvocationInfo | Format-List -Force >> "Logs\Brain_$($BrainName)_Error.txt"
Expand Down
11 changes: 11 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Known issues:
- Balance Tracker / Earnings Graph: Date change does not respect local time zone (accumulated data is calculated in UTC time)

ChangeLog UG-Miner 6.1.12 2024/02/25
====================================

Improvements:
- Minor code optimizations
- Legacy- & web GUI: Improve button handling and status updates

Miner updates:
- TeamBlackMiner-v2.19


ChangeLog UG-Miner 6.1.11 2024/02/20
====================================

Expand Down
2 changes: 2 additions & 0 deletions Data/CoinNames.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ALPH": "Alephium",
"ALT": "Altcoinchain",
"ANI": "Anime",
"APME": "Aipowermeme",
"ARGY": "Arsagility",
"ARION": "Arion",
"ARQ": "Arqma",
Expand Down Expand Up @@ -255,6 +256,7 @@
"SMLY": "SmileyCoin",
"SMT": "SmartieCoin",
"SOH": "Stohn",
"SOSHE": "Satoshe",
"SPACE": "Microvision",
"SPACECOIN": "Space",
"SPK": "Sparkspay",
Expand Down
3 changes: 3 additions & 0 deletions Data/CurrencyAlgorithm.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"ALPH": "Blake3",
"ALT": "Ethash",
"ANI": "Anime",
"APME": "X11",
"ARGY": "Ghostrider",
"ARQ": "RandomxArq",
"ARRR": "Equihash2009",
Expand Down Expand Up @@ -37,6 +38,7 @@
"BM": "X11",
"BMB": "Pufferfish2BMB",
"BNB": "Token",
"BNRY": "X11",
"BOLI": "X11",
"BRAZ": "HMQ1725",
"BRB": "Ethash",
Expand Down Expand Up @@ -284,6 +286,7 @@
"SLX": "Ethash",
"SMART": "Keccak",
"SMCN": "Scrypt",
"SMLP": "X11",
"SMLY": "Skein",
"SMT": "Yespower",
"SOH": "Scrypt",
Expand Down
Loading

0 comments on commit 81c56b5

Please sign in to comment.