From aab3a6643c1a50dfe9722aad3c043acfa60f734c Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 4 Feb 2014 01:26:21 -0600 Subject: [PATCH] Add getnettotals to btcctl. --- util/btcctl/btcctl.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/btcctl/btcctl.go b/util/btcctl/btcctl.go index 9f81ae2d..057380d8 100644 --- a/util/btcctl/btcctl.go +++ b/util/btcctl/btcctl.go @@ -66,6 +66,7 @@ var commandHandlers = map[string]*handlerData{ "getgenerate": &handlerData{0, 0, displayGeneric, nil, makeGetGenerate, ""}, "gethashespersec": &handlerData{0, 0, displayGeneric, nil, makeGetHashesPerSec, ""}, "getinfo": &handlerData{0, 0, displayJSONDump, nil, makeGetInfo, ""}, + "getnettotals": &handlerData{0, 0, displayGeneric, nil, makeGetNetTotals, ""}, "getnewaddress": &handlerData{0, 1, displayGeneric, nil, makeGetNewAddress, "[account]"}, "getpeerinfo": &handlerData{0, 0, displayJSONDump, nil, makeGetPeerInfo, ""}, "getrawchangeaddress": &handlerData{0, 0, displayGeneric, nil, makeGetRawChangeAddress, ""}, @@ -372,6 +373,11 @@ func makeGetInfo(args []interface{}) (btcjson.Cmd, error) { return btcjson.NewGetInfoCmd("btcctl") } +// makeGetNetTotals generates the cmd structure for getnettotals commands. +func makeGetNetTotals(args []interface{}) (btcjson.Cmd, error) { + return btcjson.NewGetNetTotalsCmd("btcctl") +} + // makeGetNewAddress generates the cmd structure for getnewaddress commands. func makeGetNewAddress(args []interface{}) (btcjson.Cmd, error) { var account string