forked from scriptamining/scripta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO
59 lines (57 loc) · 1.98 KB
/
TODO
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
1) Create a procedure to discover hardware devices
2) the hardware discovery procedure will write a file named devices.conf to be located under /opt/scripta/etc
3) the hardware device procedure will run on schedule (every 10 sec. for example) and will update the devices.conf file
4) The devices.conf file is written in json format and should contain a vector of records like the one in the example below:
{
"devices" : [
{
"exec-name":"<nameOfTheExecutable1>",
"device-type":"GC-3355v1"
"devName":"/dev/ttyUSB1",
"api-listen": true,
"api-port": "4028",
"expiry": "120",
"hotplug": "5",
"log": "5",
"no-pool-disable": true,
"queue": "1",
"scan-time": "30",
"scrypt": true,
"shares": "0",
"pools": [
{
"url": "stratum tcp:\/\/global.wemineltc.com:3335",
"user": "drfranz.gs",
"pass": "gs"
}
]
},
{
"exec-name":"<nameOfTheExecutable2>",
"device-type":"DualMiner"
"devName":"/dev/ttyUSB0",
"api-listen": true,
"api-port": "4029",
"expiry": "120",
"hotplug": "5",
"log": "5",
"no-pool-disable": true,
"queue": "1",
"scan-time": "30",
"scrypt": true,
"shares": "0",
"pools": [
{
"url": "stratum tcp:\/\/global.wemineltc.com:3335",
"user": "drfranz.gs2",
"pass": "gs2"
}
]
}
]
}
5) the purpose of this file is to enable to freely associate each device to an executable and a set of parameters,
along with the pools the dev should mine on. In the initial phase, for sake of semplicity, we could assume all pools
to be the same (including worker name and pw) and focus on the various aspect of managing different executables/groups
of parameters. This is a flexible solution able to manage quick integration of new hardware using custom-made miner
software (for exmaple a patched cgminer) and, to support, when possible, a single miner software scenario.