Skip to content

Commit

Permalink
v6.1.14
Browse files Browse the repository at this point in the history
Fixes:
- Includes.psm1: Mitigate memory leak with runspace handling (regression from 6.1.13)

Improvements:
- UG-Miner.ps1: Remove obsolete code; improve performance
  • Loading branch information
UselessGuru committed Mar 6, 2024
1 parent 50d6a03 commit c817e2d
Show file tree
Hide file tree
Showing 112 changed files with 613 additions and 732 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.1.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

$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.1.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

$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.1.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

$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.1.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

$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.1.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

$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.1.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

$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.1.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

$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.1.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

$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.1.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

$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.1.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

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

Write-Message -Level Debug "Brain '$BrainName': End loop (Duration $Duration sec. / Avg. loop duration: $DurationsAvg sec.); Price history $($PoolObjects.Count) objects; found $($Variables.BrainData.$BrainName.PSObject.Properties.Name.Count) valid pools."

While ($Timestamp -ge $Variables.PoolDataCollectedTimeStamp -or (([DateTime]::Now).ToUniversalTime().AddSeconds($DurationsAvg + 3) -le $Variables.EndCycleTime -and [DateTime]::Now.ToUniversalTime() -lt $Variables.EndCycleTime)) {
While ($Timestamp -ge $Variables.PoolDataCollectedTimeStamp -or ($Variables.EndCycleTime -and ([DateTime]::Now).ToUniversalTime().AddSeconds($DurationsAvg + 3) -le $Variables.EndCycleTime -and [DateTime]::Now.ToUniversalTime() -lt $Variables.EndCycleTime)) {
Start-Sleep -Seconds 1
}

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.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

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

Write-Message -Level Debug "Brain '$BrainName': End loop (Duration $Duration sec. / Avg. loop duration: $DurationsAvg sec.); Price history $($PoolObjects.Count) objects; found $($Variables.BrainData.$BrainName.PSObject.Properties.Name.Count) valid pools."

While ($Timestamp -ge $Variables.PoolDataCollectedTimeStamp -or (([DateTime]::Now).ToUniversalTime().AddSeconds($DurationsAvg + 3) -le $Variables.EndCycleTime -and [DateTime]::Now.ToUniversalTime() -lt $Variables.EndCycleTime)) {
While ($Timestamp -ge $Variables.PoolDataCollectedTimeStamp -or ($Variables.EndCycleTime -and ([DateTime]::Now).ToUniversalTime().AddSeconds($DurationsAvg + 3) -le $Variables.EndCycleTime -and [DateTime]::Now.ToUniversalTime() -lt $Variables.EndCycleTime)) {
Start-Sleep -Seconds 1
}

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.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

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

Write-Message -Level Debug "Brain '$BrainName': End loop (Duration $Duration sec. / Avg. loop duration: $DurationsAvg sec.); Price history $($PoolObjects.Count) objects; found $($Variables.BrainData.$BrainName.PSObject.Properties.Name.Count) valid pools."

While ($Timestamp -ge $Variables.PoolDataCollectedTimeStamp -or (([DateTime]::Now).ToUniversalTime().AddSeconds($DurationsAvg + 3) -le $Variables.EndCycleTime -and [DateTime]::Now.ToUniversalTime() -lt $Variables.EndCycleTime)) {
While ($Timestamp -ge $Variables.PoolDataCollectedTimeStamp -or ($Variables.EndCycleTime -and ([DateTime]::Now).ToUniversalTime().AddSeconds($DurationsAvg + 3) -le $Variables.EndCycleTime -and [DateTime]::Now.ToUniversalTime() -lt $Variables.EndCycleTime)) {
Start-Sleep -Seconds 1
}

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.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

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

Write-Message -Level Debug "Brain '$BrainName': End loop (Duration $Duration sec. / Avg. loop duration: $DurationsAvg sec.); Price history $($PoolObjects.Count) objects; found $($Variables.BrainData.$BrainName.PSObject.Properties.Name.Count) valid pools."

While ($Timestamp -ge $Variables.PoolDataCollectedTimeStamp -or (([DateTime]::Now).ToUniversalTime().AddSeconds($DurationsAvg + 3) -le $Variables.EndCycleTime -and [DateTime]::Now.ToUniversalTime() -lt $Variables.EndCycleTime)) {
While ($Timestamp -ge $Variables.PoolDataCollectedTimeStamp -or ($Variables.EndCycleTime -and ([DateTime]::Now).ToUniversalTime().AddSeconds($DurationsAvg + 3) -le $Variables.EndCycleTime -and [DateTime]::Now.ToUniversalTime() -lt $Variables.EndCycleTime)) {
Start-Sleep -Seconds 1
}

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.13
Version date: 2024/02/28
Version: 6.1.14
Version date: 2024/03/06
#>

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

Write-Message -Level Debug "Brain '$BrainName': End loop (Duration $Duration sec. / Avg. loop duration: $DurationsAvg sec.); Price history $($PoolObjects.Count) objects; found $($Variables.BrainData.$BrainName.PSObject.Properties.Name.Count) valid pools."

While ($Timestamp -ge $Variables.PoolDataCollectedTimeStamp -or (([DateTime]::Now).ToUniversalTime().AddSeconds($DurationsAvg + 3) -le $Variables.EndCycleTime -and [DateTime]::Now.ToUniversalTime() -lt $Variables.EndCycleTime)) {
While ($Timestamp -ge $Variables.PoolDataCollectedTimeStamp -or ($Variables.EndCycleTime -and ([DateTime]::Now).ToUniversalTime().AddSeconds($DurationsAvg + 3) -le $Variables.EndCycleTime -and [DateTime]::Now.ToUniversalTime() -lt $Variables.EndCycleTime)) {
Start-Sleep -Seconds 1
}

Expand Down
10 changes: 10 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ 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.13 2024/03/06
====================================

Fixes:
- Includes.psm1: Mitigate memory leak with runspace handling (regression from 6.1.13)

Improvements:
- UG-Miner.ps1: Remove obsolete code; improve performance


ChangeLog UG-Miner 6.1.13 2024/02/28
====================================

Expand Down
5 changes: 5 additions & 0 deletions Data/CoinNames.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"ELT": "Electron",
"EMC": "Emer",
"EMC2": "Einsteinium",
"EPN": "Etidspatnet",
"ERG": "Ergo",
"ESN": "Ethersocial",
"ESP": "Espers",
Expand All @@ -111,6 +112,7 @@
"ETP": "Metaverse",
"EVR": "Evrmore",
"EXP": "Expanse",
"FCH": "Freecash",
"FEC": "Ferrite",
"FIRO": "Firo",
"FIURY": "FiuryCoin",
Expand Down Expand Up @@ -223,6 +225,7 @@
"PXC": "Phoenix",
"PYI": "Pyrin",
"QKC": "Quarkchain",
"QL": "Qlink",
"QNC": "Qnode",
"QOGE": "QogeCoin",
"QRK": "Quark",
Expand Down Expand Up @@ -280,6 +283,7 @@
"UMO": "Umolecule",
"UNO": "Unobtanium",
"UPX": "Uplexa",
"URSA": "Ursula",
"URX": "Uraniumx",
"VARSE": "Varsechain",
"VEGI": "Veggie",
Expand Down Expand Up @@ -319,6 +323,7 @@
"ZANO": "Zano",
"ZCL": "Zclassic",
"ZEN": "Horizen",
"ZENYX": "Zenyx",
"ZEPH": "Zephyr",
"ZER": "Zero",
"ZET": "Zeta",
Expand Down
Loading

0 comments on commit c817e2d

Please sign in to comment.