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.
This commit is contained in:
Dave Collins 2014-01-27 10:58:24 -06:00
parent 0bf4e0e097
commit b9a641ab79

View file

@ -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,