From 72afc787e6d471bcf516eee9b6a3788a8bacd03b Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 27 Jan 2014 13:51:11 -0600 Subject: [PATCH] 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. --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index 5021ef76..2c4d7d9d 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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,