Move getblocktemplate/getwork to askwallet list.

Both of these RPC methods require access to information ony available in
the wallet.  Therefore they have 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-25 22:58:07 -06:00
parent d58af1c3cf
commit 0bf4e0e097

View file

@ -93,12 +93,14 @@ var rpcAskWallet = map[string]bool{
"getaccountaddress": true, "getaccountaddress": true,
"getaddressesbyaccount": true, "getaddressesbyaccount": true,
"getbalance": true, "getbalance": true,
"getblocktemplate": true,
"getrawchangeaddress": true, "getrawchangeaddress": true,
"getreceivedbyaccount": true, "getreceivedbyaccount": true,
"getreceivedbyaddress": true, "getreceivedbyaddress": true,
"gettransaction": true, "gettransaction": true,
"gettxout": true, "gettxout": true,
"gettxoutsetinfo": true, "gettxoutsetinfo": true,
"getwork": true,
"importprivkey": true, "importprivkey": true,
"importwallet": true, "importwallet": true,
"keypoolrefill": true, "keypoolrefill": true,
@ -128,13 +130,11 @@ var rpcAskWallet = map[string]bool{
// Commands that are temporarily unimplemented. // Commands that are temporarily unimplemented.
var rpcUnimplemented = map[string]bool{ var rpcUnimplemented = map[string]bool{
"getblocktemplate": true,
"getinfo": true, "getinfo": true,
"getmininginfo": true, "getmininginfo": true,
"getnettotals": true, "getnettotals": true,
"getnetworkhashps": true, "getnetworkhashps": true,
"getnewaddress": true, "getnewaddress": true,
"getwork": true,
} }
// rpcServer holds the items the rpc server may need to access (config, // rpcServer holds the items the rpc server may need to access (config,