Move getinfo RPC method to askwallet list.

The getinfo RPC method requires access to information only available in
the wallet.  Therefore, it 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 13:51:11 -06:00
parent a5e5903caf
commit 72afc787e6

View file

@ -94,6 +94,7 @@ var rpcAskWallet = map[string]bool{
"getaddressesbyaccount": true,
"getbalance": true,
"getblocktemplate": true,
"getinfo": true,
"getnewaddress": true,
"getrawchangeaddress": true,
"getreceivedbyaccount": true,
@ -131,7 +132,6 @@ var rpcAskWallet = map[string]bool{
// Commands that are temporarily unimplemented.
var rpcUnimplemented = map[string]bool{
"getinfo": true,
"getmininginfo": true,
"getnettotals": true,
"getnetworkhashps": true,