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:
parent
d58af1c3cf
commit
0bf4e0e097
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue