forked from toorop/go-bitcoind
-
Notifications
You must be signed in to change notification settings - Fork 2
/
miningInfo.go
37 lines (26 loc) · 931 Bytes
/
miningInfo.go
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
package navcoind
// A MiningInfo represents a mininginfo response
type MiningInfo struct {
// The current block
Blocks uint64 `json:"blocks"`
// The last block size
CurrentBlocksize uint64 `json:"currentblocksize"`
// The last block transaction
CurrentBlockTx uint64 `json:"currentblocktx"`
// The current difficulty
Difficulty float64 `json:"difficulty"`
// Current errors
Errors string `json:"errors"`
// The processor limit for generation. -1 if no generation. (see getgenerate or setgenerate calls)
GenProcLimit int32 `json:"genproclimit"`
// The size of the mem pool
PooledtTx uint64 `json:"pooledtx"`
// If using testnet or not
Testnet bool `json:"testnet"`
// If the generation is on or off (see getgenerate or setgenerate calls)
Generate bool `json:"generate"`
// The network hashrate
NetworkHashps uint64 `json:"networkhashps"`
// Node hashrate
HashesPersec uint64 `json:"hashespersec"`
}