Move BackupWallet to CWallet::BackupWallet
This commit is contained in:
committed by
lateminer
parent
261efcf69a
commit
db3b5d964a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user