From f1577a17184f73b07c0118527ee37e3c689d31e3 Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Wed, 22 Jan 2014 17:28:09 +0000 Subject: [PATCH] add keypoolrefill command. Since we handle this automatically it is just a noop. Closes #48 --- cmdmgr.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmdmgr.go b/cmdmgr.go index 3ca383e..cf8f9d8 100644 --- a/cmdmgr.go +++ b/cmdmgr.go @@ -39,6 +39,7 @@ var rpcHandlers = map[string]cmdHandler{ "getbalance": GetBalance, "getnewaddress": GetNewAddress, "importprivkey": ImportPrivKey, + "keypoolrefill": KeypoolRefill, "listaccounts": ListAccounts, "listtransactions": ListTransactions, "sendfrom": SendFrom, @@ -61,7 +62,6 @@ var rpcHandlers = map[string]cmdHandler{ "gettxoutsetinfo": Unimplemented, "getwork": Unimplemented, "importwallet": Unimplemented, - "keypoolrefill": Unimplemented, "listaddressgroupings": Unimplemented, "listlockunspent": Unimplemented, "listreceivedbyaccount": Unimplemented, @@ -480,6 +480,12 @@ func ImportPrivKey(icmd btcjson.Cmd) (interface{}, *btcjson.Error) { } } +// KeypoolRefill handles the keypoolrefill command. Since we handle the keypool +// automatically this does nothing since refilling is never manually required. +func KeypoolRefill(icmd btcjson.Cmd) (interface{}, *btcjson.Error) { + return nil, nil +} + // NotifyBalances notifies an attached frontend of the current confirmed // and unconfirmed account balances. //