add keypoolrefill command.

Since we handle this automatically it is just a noop.

Closes #48
This commit is contained in:
Owain G. Ainsworth 2014-01-22 17:28:09 +00:00
parent e8c8823bfe
commit f1577a1718

View file

@ -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.
//