Move BackupWallet to CWallet::BackupWallet

This commit is contained in:
Patrick Strateman
2016-05-16 17:31:16 -07:00
committed by lateminer
parent 261efcf69a
commit db3b5d964a
6 changed files with 44 additions and 43 deletions

View File

@@ -1786,7 +1786,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;