From b9a641ab794a7d9293d4ffaeb9e8340e3e25a2af Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 27 Jan 2014 10:58:24 -0600 Subject: [PATCH] Move getnewaddress RPC method to askwallet list. The getnewaddress RPC method deals with wallet-related functionality and therefore has been moved to the list of methods which return an error information the caller to send the request to the wallet instead. --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index 8578d5b3..5021ef76 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -94,6 +94,7 @@ var rpcAskWallet = map[string]bool{ "getaddressesbyaccount": true, "getbalance": true, "getblocktemplate": true, + "getnewaddress": true, "getrawchangeaddress": true, "getreceivedbyaccount": true, "getreceivedbyaddress": true, @@ -134,7 +135,6 @@ var rpcUnimplemented = map[string]bool{ "getmininginfo": true, "getnettotals": true, "getnetworkhashps": true, - "getnewaddress": true, } // rpcServer holds the items the rpc server may need to access (config,