-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.py
More file actions
26 lines (22 loc) · 794 Bytes
/
config.py
File metadata and controls
26 lines (22 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Secret username allowed to use setworkaux
SecretUser = "ssecreteloipool"
# URI to send gotwork with info for every share submission
GotWorkURI = 'http://mergedproxyuser:mergedproxypass@127.0.0.1:8331/'
# Logging of shares:
ShareLogging = (
{
'type': 'sql',
'engine': 'mysql',
'dbopts': {
'host': 'localhost',
'db': 'multicoin',
'user': 'root',
},
'statement': "insert into shares (user, ip, oresult, uresult, reason, solution, difficulty, time, coin, blkheight) values ({username}, {remoteHost}, {ourResult}, {upstreamResult}, {reason}, unhex({solution}), {difficulty}, {time}, {coin}, {blkheight})",
},
)
# Dynamically Configured Settings
Algorithm = 'sha256'
Coin = 'BTC'
UpstreamURI = 'http://username:password@127.0.0.1:8001'
StratumAddresses = (('', 3333),)