Skip to content

Commit

Permalink
lyra2re to lyra2z , lyra2rev3 to lyra2v3
Browse files Browse the repository at this point in the history
  • Loading branch information
MaynardMiner committed May 23, 2019
1 parent 97a86f3 commit 5a46264
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions build/powershell/background.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ try { if( -not ( $Net | Where {$_.DisplayName -like "*background.ps1*"} ) ) { Ne
}
$Net = $null

##Get hive naming conventions:
$GetHiveNames = ".\config\pools\pool-algos.json"
$HiveNames = if (Test-Path $GetHiveNames) { Get-Content $GetHiveNames | ConvertFrom-Json }

## Get Parameters
$Global:config = [hashtable]::Synchronized(@{ })
$Global:stats = [hashtable]::Synchronized(@{ })
Expand Down Expand Up @@ -78,7 +82,7 @@ Write-Host "Platform is $($global:Config.Params.Platform)"; Write-Host "HiveOS I

##Icon for windows
if ($global:Config.Params.Platform -eq "windows") {
Start-Process "powershell" -ArgumentList "-command .\build\powershell\icon.ps1 `".\build\apps\comb.ico`"" -NoNewWindow
. .\build\powershell\icon.ps1 '.\build\apps\comb.ico'
$Host.UI.RawUI.BackgroundColor = ($bckgrnd = 'Black'); $Host.UI.RawUI.ForegroundColor = 'White';
$Host.PrivateData.ErrorForegroundColor = 'Red'; $Host.PrivateData.ErrorBackgroundColor = $bckgrnd;
$Host.PrivateData.WarningForegroundColor = 'Magenta'; $Host.PrivateData.WarningBackgroundColor = $bckgrnd;
Expand Down Expand Up @@ -107,7 +111,7 @@ $Hive_Path = "/hive/bin"
Write-Host "API Port is $($global:Config.Params.Port)";

if($Global:config.Params.API -eq "Yes") {
$Posh_api = Get-APIServer;
$Posh_api = Get-AP44444444444444444IServer;
$Posh_Api.BeginInvoke() | Out-Null
$Posh_api = $null
}
Expand Down Expand Up @@ -136,10 +140,6 @@ $BackgroundTimer = New-Object -TypeName System.Diagnostics.Stopwatch
$BackgroundTimer.Restart()
$RestartTimer = New-Object -TypeName System.Diagnostics.Stopwatch

##Get hive naming conventions:
$GetHiveNames = ".\config\pools\pool-algos.json"
$HiveNames = if (Test-Path $GetHiveNames) { Get-Content $GetHiveNames | ConvertFrom-Json }

While ($True) {

## Timer For When To Restart Loop
Expand Down
2 changes: 1 addition & 1 deletion build/powershell/launchcode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function Start-LaunchCode {
$script += "New-NetFirewallRule -DisplayName `'$($MinerCurrent.Minername)`' -Direction Inbound -Program `'$Program`' -Action Allow"
}
}
$script += "Start-Process `"powershell`" -ArgumentList `"-command `"`"Set-Location ```'$($global:Dir)```'; & ```'$($global:Dir)\build\powershell\icon.ps1```' ```'$($global:Dir)\build\apps\miner.ico```'`"`"`" -NoNewWindow"
$script += ". `'$($global:Dir)\build\powershell\icon.ps1`' `'$($global:Dir)\build\apps\miner.ico`'"
$script += "`$host.ui.RawUI.WindowTitle = `'$($MinerCurrent.Name) - $($MinerCurrent.Algo)`';"
$MinerCurrent.Prestart | ForEach-Object {
if ($_ -notlike "export LD_LIBRARY_PATH=$($global:Dir)\build\export") {
Expand Down
4 changes: 2 additions & 2 deletions config/pools/pool-algos.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
"comma seperated"
]
},
"lyra2re": {
"lyra2z": {
"alt_names": [
"lyra2re",
"lyra2z"
Expand All @@ -449,7 +449,7 @@
"comma seperated"
]
},
"lyra2rev3": {
"lyra2v3": {
"alt_names": [
"lyra2v3",
"lyra2rev3"
Expand Down
3 changes: 2 additions & 1 deletion startup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ $Defaults.PSObject.Properties.Name | % { if ($_ -notin $Parsed.keys) { $Parsed.A
$Parsed | convertto-json | Out-File ".\config\parameters\arguments.json"

if(Test-path "C:\") {
Start-Process "CMD" -ArgumentList "/C powershell -noexit -executionpolicy Bypass -windowstyle maximized -command `"pwsh -command `"Set-Location C:\; Set-Location `'$Dir`'; .\swarm.ps1`"`"" -Verb RunAs
$host.ui.RawUI.WindowTitle = "SWARM";
Start-Process "CMD" -ArgumentList "/C powershell -noexit -executionpolicy Bypass -windowstyle maximized -command `"pwsh -command `"Set-Location C:\; Set-Location `'$Dir`'; . `'$Dir\build\powershell\icon.ps1`' `'$Dir\build\apps\SWARM.ico`'; .\swarm.ps1`"`"" -Verb RunAs
}
else {
Invoke-Expression ".\swarm.ps1"
Expand Down
1 change: 0 additions & 1 deletion swarm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ $PID | Out-File ".\build\pid\miner_pid.txt"
## Change console icon and title
if ($global:Config.Params.Platform -eq "windows") {
$host.ui.RawUI.WindowTitle = "SWARM";
Start-Process "powershell" -ArgumentList "-command .\build\powershell\icon.ps1 `".\build\apps\SWARM.ico`"" -NoNewWindow
}

##Clear Old Agent Stats
Expand Down

0 comments on commit 5a46264

Please sign in to comment.