diff --git a/util/btcctl/btcctl.go b/util/btcctl/btcctl.go index 17d34818..6fade54f 100644 --- a/util/btcctl/btcctl.go +++ b/util/btcctl/btcctl.go @@ -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) {