forked from lucasjones/node-boolberry-pool
-
Notifications
You must be signed in to change notification settings - Fork 7
/
protocol_proposal.txt
78 lines (70 loc) · 2.87 KB
/
protocol_proposal.txt
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//"login"
var login_req = {
login: "addres",
pass: "1234",
hi: {
height: 1111,
block_id: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955"
}
};
var login_resp = {
id: "some_miner_id1",
job: {
blob: '5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a9555463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955',
job_id: 'some_job_id34',
target: '',
difficulty: '123123222223232',
prev_hi: {
height: 1111,
block_id: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955"
}
},
status: 'OK',
addms: [{
hi: {
height: 1111,
block_id: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955"
},
prev_id: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955",
addm: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a9555463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a9555463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a9555463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955"
}]
};
//"getjob"
var getjob_arg = {
id: "some_miner_id1",
hi: {
height: 1111,
block_id: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955"
}
};
var getjob_rsp = {
blob: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a9555463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955",
job_id: "some_job_id",
target: "",
difficulty: "32342342312123",
status: 'OK',
prev_hi: {
height: 1111,
block_id: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955"
},
addms: [{
hi: {
height: 1111,
block_id: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955"
},
prev_id: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955",
addm: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a9555463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a9555463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a9555463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955"
}]
};
//"getfullscratchpad"
var getfullscratchpad_arg = {
id: "some_miner_id1"
};
var getfullscratchpad_rsp = {
status: 'OK',
hi: {
height: 1111,
block_id: "5463e60765681e1e4fccd53735265520468cc8cab8e88aaa88d726478160a955"
},
scratchpad_hex: "463e60765681e1e4fccd53735265520468cc8c......a very long hex string(megabytes)...e88aaa88d726478160a955"
};