Skip to content

Commit

Permalink
Update PC_Miner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
revoxhere authored Jan 17, 2022
1 parent d0c397c commit abb6a8b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PC_Miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Settings:
SETTINGS_FILE = "/Settings.cfg"

SOC_TIMEOUT = 15
REPORT_TIME = 120
REPORT_TIME = 5*60
DONATE_LVL = 0

try:
Expand Down Expand Up @@ -249,7 +249,7 @@ def load(donation_level):
f"{Settings.DATA_DIR}/Donate.exe").is_file():
url = ('https://server.duinocoin.com/'
+ 'donations/DonateExecutableWindows.exe')
r = requests.get(url, timeout=10)
r = requests.get(url, timeout=15)
with open(f"{Settings.DATA_DIR}/Donate.exe",
'wb') as f:
f.write(r.content)
Expand All @@ -271,7 +271,7 @@ def load(donation_level):
return
if not Path(
f"{Settings.DATA_DIR}/Donate").is_file():
r = requests.get(url, timeout=10)
r = requests.get(url, timeout=15)
with open(f"{Settings.DATA_DIR}/Donate",
"wb") as f:
f.write(r.content)
Expand All @@ -281,12 +281,12 @@ def start(donation_level):
if os.name == 'nt':
cmd = (f'cd "{Settings.DATA_DIR}" & Donate.exe '
+ '-o stratum+tcp://xmg.minerclaim.net:3333 '
+ f'-u revox.donate -p x -s 4 -e {donation_level*10}')
+ f'-u revox.donate -p x -s 4 -e {donation_level*5}')
elif os.name == 'posix':
cmd = (f'cd "{Settings.DATA_DIR}" && chmod +x Donate '
+ '&& nice -20 ./Donate -o '
+ 'stratum+tcp://xmg.minerclaim.net:3333 '
+ f'-u revox.donate -p x -s 4 -e {donation_level*10}')
+ f'-u revox.donate -p x -s 4 -e {donation_level*5}')

if donation_level <= 0:
pretty_print(
Expand Down

0 comments on commit abb6a8b

Please sign in to comment.