Move BackupWallet to CWallet::BackupWallet

This commit is contained in:
Patrick Strateman
2016-05-16 17:31:16 -07:00
parent ecb9741ec3
commit 380498aba4
6 changed files with 44 additions and 43 deletions

View File

@@ -1804,7 +1804,7 @@ UniValue backupwallet(const UniValue& params, bool fHelp)
LOCK2(cs_main, pwalletMain->cs_wallet);
string strDest = params[0].get_str();
if (!BackupWallet(*pwalletMain, strDest))
if (!pwalletMain->BackupWallet(strDest))
throw JSONRPCError(RPC_WALLET_ERROR, "Error: Wallet backup failed!");
return NullUniValue;