Add getmininginfo to btcctl.
This commit is contained in:
parent
c379061d6f
commit
f0c05c76d3
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,7 @@ var commandHandlers = map[string]*handlerData{
|
|||
"getgenerate": {0, 0, displayGeneric, nil, makeGetGenerate, ""},
|
||||
"gethashespersec": {0, 0, displayGeneric, nil, makeGetHashesPerSec, ""},
|
||||
"getinfo": {0, 0, displayJSONDump, nil, makeGetInfo, ""},
|
||||
"getmininginfo": {0, 0, displayJSONDump, nil, makeGetMiningInfo, ""},
|
||||
"getnetworkhashps": {0, 2, displayGeneric, []conversionHandler{toInt, toInt}, makeGetNetworkHashPS, "[blocks height]"},
|
||||
"getnettotals": {0, 0, displayJSONDump, nil, makeGetNetTotals, ""},
|
||||
"getnewaddress": {0, 1, displayGeneric, nil, makeGetNewAddress, "[account]"},
|
||||
|
@ -413,6 +414,11 @@ func makeGetInfo(args []interface{}) (btcjson.Cmd, error) {
|
|||
return btcjson.NewGetInfoCmd("btcctl")
|
||||
}
|
||||
|
||||
// makeGetMiningInfo generates the cmd structure for getmininginfo commands.
|
||||
func makeGetMiningInfo(args []interface{}) (btcjson.Cmd, error) {
|
||||
return btcjson.NewGetMiningInfoCmd("btcctl")
|
||||
}
|
||||
|
||||
// makeGetNetworkHashPS generates the cmd structure for getnetworkhashps
|
||||
// commands.
|
||||
func makeGetNetworkHashPS(args []interface{}) (btcjson.Cmd, error) {
|
||||
|
|
Loading…
Reference in a new issue