Skip to content

Commit

Permalink
core rework
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzi-co committed Feb 17, 2019
1 parent 2b2a387 commit d4e3489
Show file tree
Hide file tree
Showing 50 changed files with 1,595 additions and 1,875 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Expand Up @@ -5,12 +5,16 @@ Cache/*
Config/*
Downloads/*
Archive/*
Dump/*

.vscode/
Donation.ctr
Wrapper_*.txt
!empty.txt
config.ini

Config.ini
Autoexec.txt
Donations.json

WIP/*
*custom*
16 changes: 14 additions & 2 deletions AfterburnerResult.bat
@@ -1,3 +1,15 @@
@echo off
powershell -version 5.0 -executionpolicy bypass -command "&.\AfterburnerResult.ps1
pause

cd /d %~dp0

set Command="&.\AfterburnerResult.ps1"

where pwsh >nul 2>nul || goto powershell
pwsh -noexit -executionpolicy bypass -command %Command%
goto end

:powershell
powershell -version 5.0 -noexit -executionpolicy bypass -command %Command%

:end
pause
13 changes: 10 additions & 3 deletions AutoExchange.bat
Expand Up @@ -3,9 +3,16 @@
cd /d %~dp0

set Mode=Automatic
set Pools=NiceHash,Zpool,NLPool,ZergPool,BlockMasters
set Pools=NiceHash,Zpool,NLPool,ZergPool

powershell -version 5.0 -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools%"
::pwsh -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools%"
set Command="& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools%"

where pwsh >nul 2>nul || goto powershell
pwsh -noexit -executionpolicy bypass -command %Command%
goto end

:powershell
powershell -version 5.0 -noexit -executionpolicy bypass -command %Command%

:end
pause
11 changes: 9 additions & 2 deletions AutoStart Example - Auto with algo filter.bat
Expand Up @@ -6,7 +6,14 @@ set Mode=Automatic
set Pools=Zpool
set Algos=Lyra2z

powershell -version 5.0 -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools% -Algorithm %Algos%"
::pwsh -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools% -Algorithm %Algos%"
set Command="& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools% -Algorithm %Algos%"

where pwsh >nul 2>nul || goto powershell
pwsh -noexit -executionpolicy bypass -command %Command%
goto end

:powershell
powershell -version 5.0 -noexit -executionpolicy bypass -command %Command%

:end
pause
11 changes: 9 additions & 2 deletions AutoStart Example - Auto with coin filter.bat
Expand Up @@ -6,7 +6,14 @@ set Mode=Automatic
set Pools=Zpool,MiningPoolHub
set Coins=Bitcore,Signatum,Zcash

powershell -version 5.0 -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools% -Coinsname %Coins%"
::pwsh -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools% -Coinsname %Coins%"
set Command="& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools% -Coinsname %Coins%"

where pwsh >nul 2>nul || goto powershell
pwsh -noexit -executionpolicy bypass -command %Command%
goto end

:powershell
powershell -version 5.0 -noexit -executionpolicy bypass -command %Command%

:end
pause
11 changes: 9 additions & 2 deletions AutoStart Example - One coin manual.bat
Expand Up @@ -6,7 +6,14 @@ set Mode=Manual
set Pools=SuprNova
set Coins=Bitcore

powershell -version 5.0 -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools% -Coinsname %Coins%"
::pwsh -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools% -Coinsname %Coins%"
set Command="& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools% -Coinsname %Coins%"

where pwsh >nul 2>nul || goto powershell
pwsh -noexit -executionpolicy bypass -command %Command%
goto end

:powershell
powershell -version 5.0 -noexit -executionpolicy bypass -command %Command%

:end
pause
11 changes: 0 additions & 11 deletions AutoStart Example - Two pools on Auto.bat

This file was deleted.

13 changes: 10 additions & 3 deletions AutoStart.bat
Expand Up @@ -3,9 +3,16 @@
cd /d %~dp0

set Mode=Automatic
set Pools=NiceHash,Zpool,BlockMasters,NLPool,ZergPool,WhatToMine,CoinCalc
set Pools=NiceHash,Zpool,NLPool,ZergPool,WhatToMine,CoinCalc

powershell -version 5.0 -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools%"
::pwsh -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools%"
set Command="& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools%"

where pwsh >nul 2>nul || goto powershell
pwsh -noexit -executionpolicy bypass -command %Command%
goto end

:powershell
powershell -version 5.0 -noexit -executionpolicy bypass -command %Command%

:end
pause
13 changes: 10 additions & 3 deletions AutoStart24h.bat
Expand Up @@ -3,9 +3,16 @@
cd /d %~dp0

set Mode=Automatic24h
set Pools=Zpool,WhatToMine,NiceHash,MiningPoolHub
set Pools=NiceHash,Zpool,NLPool,ZergPool,WhatToMine,CoinCalc

powershell -version 5.0 -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools%"
::pwsh -noexit -executionpolicy bypass -command "& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools%"
set Command="& .\Core.ps1 -MiningMode %Mode% -PoolsName %Pools%"

where pwsh >nul 2>nul || goto powershell
pwsh -noexit -executionpolicy bypass -command %Command%
goto end

:powershell
powershell -version 5.0 -noexit -executionpolicy bypass -command %Command%

:end
pause
2 changes: 2 additions & 0 deletions BootStart.bat
Expand Up @@ -5,3 +5,5 @@ cd /d %~dp0
timeout /t 180

AutoStart.bat

pause

5 comments on commit d4e3489

@toshkov02
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Привет. Донат перестал работать.
В логе "Info Next interval you will be donating for 300 seconds, thanks for your support" и назначает "WorkerName": "Donate", но майнить продолжает вместо твоего на мой кошелёк и пул выбирает из моего списка, а не только найс.
И из периода доната не выходит, пока программу Forager не перезапустишь.

@toshkov02
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Уточнение, 300 секунд майнит только на найс, но кошелёк на твой не меняет.

@yuzi-co
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сенкс, пофиксим :)

@toshkov02
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

300 секунд, вместо 15 минут интервал доната.

@toshkov02
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В конфиге :
Donate = 15 на
DonateMinutes = 15
В core.ps1 216 строка:
$Wallets = @{
на $Global:Wallets = @{
У меня после этого заработало нормально.

Please sign in to comment.