Disable dumpwallet RPC handler that snuck in.

We do not support this yet, and need to match bitcoin'd behavior
before the function is added back to the RPC handler map.
This commit is contained in:
Josh Rickmar 2013-11-19 20:44:37 -05:00
parent 00fe439670
commit 7e0a24950a

View file

@ -40,7 +40,6 @@ type cmdHandler func(chan []byte, btcjson.Cmd)
var rpcHandlers = map[string]cmdHandler{
// Standard bitcoind methods
"dumpprivkey": DumpPrivKey,
"dumpwallet": DumpWallet,
"getaddressesbyaccount": GetAddressesByAccount,
"getbalance": GetBalance,
"getnewaddress": GetNewAddress,
@ -216,6 +215,7 @@ func DumpPrivKey(frontend chan []byte, icmd btcjson.Cmd) {
// DumpWallet replies to a dumpwallet request with all private keys
// in a wallet, or an appropiate error if the wallet is locked.
// TODO: finish this to match bitcoind by writing the dump to a file.
func DumpWallet(frontend chan []byte, icmd btcjson.Cmd) {
// Type assert icmd to access parameters.
cmd, ok := icmd.(*btcjson.DumpWalletCmd)