From 0951ffa1c7b14e34d73c1a56f4d98310df791cf2 Mon Sep 17 00:00:00 2001 From: David Hill Date: Thu, 30 Jan 2014 12:29:21 -0500 Subject: [PATCH] add listaddressgroupings 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 e75640b29..0eacde3b0 100644 --- a/util/btcctl/btcctl.go +++ b/util/btcctl/btcctl.go @@ -79,6 +79,7 @@ var commandHandlers = map[string]*handlerData{ "importprivkey": &handlerData{1, 2, displayGeneric, []conversionHandler{nil, nil, toBool}, makeImportPrivKey, " [label] [rescan=true]"}, "keypoolrefill": &handlerData{0, 1, displayGeneric, []conversionHandler{toInt}, makeKeyPoolRefill, "[newsize]"}, "listaccounts": &handlerData{0, 1, displayJSONDump, []conversionHandler{toInt}, makeListAccounts, "[minconf=1]"}, + "listaddressgroupings": &handlerData{0, 0, displayJSONDump, nil, makeListAddressGroupings, ""}, "listsinceblock": &handlerData{0, 2, displayJSONDump, []conversionHandler{nil, toInt}, makeListSinceBlock, "[blockhash] [minconf=10]"}, "listtransactions": &handlerData{0, 3, displayJSONDump, []conversionHandler{nil, toInt, toInt}, makeListTransactions, "[account] [count=10] [from=0]"}, "ping": &handlerData{0, 0, displayGeneric, nil, makePing, ""}, @@ -486,6 +487,11 @@ func makeListAccounts(args []interface{}) (btcjson.Cmd, error) { return btcjson.NewListAccountsCmd("btcctl", optargs...) } +// makeListAddressGroupings generates the cmd structure for listaddressgroupings commands. +func makeListAddressGroupings(args []interface{}) (btcjson.Cmd, error) { + return btcjson.NewListAddressGroupingsCmd("btcctl") +} + // makeListSinceBlock generates the cmd structure for // listsinceblock commands. func makeListSinceBlock(args []interface{}) (btcjson.Cmd, error) {