Skip to content

Commit 7383c12

Browse files
authored
Update PC_Miner.py
1 parent 78fd036 commit 7383c12

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

PC_Miner.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
"""
3-
Duino-Coin Official PC Miner 3.3 © MIT licensed
3+
Duino-Coin Official PC Miner 3.31 © MIT licensed
44
https://duinocoin.com
55
https://github.com/revoxhere/duino-coin
66
Duino-Coin Team & Community 2019-2022
@@ -136,7 +136,7 @@ class Settings:
136136
"""
137137
ENCODING = "UTF8"
138138
SEPARATOR = ","
139-
VER = 3.3
139+
VER = 3.31
140140
DATA_DIR = "Duino-Coin PC Miner " + str(VER)
141141
TRANSLATIONS = ("https://raw.githubusercontent.com/"
142142
+ "revoxhere/"
@@ -1089,6 +1089,13 @@ def mine(id: int, user_settings: list,
10891089

10901090
hashrate[id] = result[1]
10911091
total_hashrate = sum(hashrate.values())
1092+
prep_identifier = user_settings['identifier']
1093+
if running_on_rpi:
1094+
if prep_identifier != "None":
1095+
prep_identifier += " - RPi"
1096+
else:
1097+
prep_identifier = "Raspberry Pi"
1098+
10921099
while True:
10931100
Client.send(f"{result[0]}"
10941101
+ Settings.SEPARATOR
@@ -1097,7 +1104,7 @@ def mine(id: int, user_settings: list,
10971104
+ "Official PC Miner"
10981105
+ f" {Settings.VER}"
10991106
+ Settings.SEPARATOR
1100-
+ f"{user_settings['identifier']}"
1107+
+ f"{prep_identifier}"
11011108
+ Settings.SEPARATOR
11021109
+ Settings.SEPARATOR
11031110
+ f"{single_miner_id}")

0 commit comments

Comments
 (0)