From 0bf4e0e097176a35302adc69090993bf45b2c26d Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 25 Jan 2014 22:58:07 -0600 Subject: [PATCH] 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. --- rpcserver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcserver.go b/rpcserver.go index bd060858..8578d5b3 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -93,12 +93,14 @@ var rpcAskWallet = map[string]bool{ "getaccountaddress": true, "getaddressesbyaccount": true, "getbalance": true, + "getblocktemplate": true, "getrawchangeaddress": true, "getreceivedbyaccount": true, "getreceivedbyaddress": true, "gettransaction": true, "gettxout": true, "gettxoutsetinfo": true, + "getwork": true, "importprivkey": true, "importwallet": true, "keypoolrefill": true, @@ -128,13 +130,11 @@ var rpcAskWallet = map[string]bool{ // Commands that are temporarily unimplemented. var rpcUnimplemented = map[string]bool{ - "getblocktemplate": true, "getinfo": true, "getmininginfo": true, "getnettotals": true, "getnetworkhashps": true, "getnewaddress": true, - "getwork": true, } // rpcServer holds the items the rpc server may need to access (config,