mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
Add getmininginfo to btcctl.
This commit is contained in:
parent
c379061d6f
commit
f0c05c76d3
@ -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…
x
Reference in New Issue
Block a user