Skip to content

Commit 94019f5

Browse files
authored
Update walletdb.cpp
1 parent 0b3f522 commit 94019f5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/walletdb.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -738,20 +738,20 @@ bool BackupWallet(const CWallet& wallet, const string& strDest)
738738
bitdb.mapFileUseCount.erase(wallet.strWalletFile);
739739

740740
// Copy wallet.dat
741-
boost::filesystem::path pathSrc = GetDataDir() / wallet.strWalletFile;
742-
boost::filesystem::path pathDest(strDest);
741+
filesystem::path pathSrc = GetDataDir() / wallet.strWalletFile;
742+
filesystem::path pathDest(strDest);
743743
if (boost::filesystem::is_directory(pathDest))
744744
pathDest /= wallet.strWalletFile;
745745

746746
try {
747-
#if BOOST_VERSION >= 104000
748-
boost::filesystem::copy_file(pathSrc, pathDest, boost::filesystem::copy_option::overwrite_if_exists);
747+
#if BOOST_VERSION >= 107000
748+
filesystem::copy_file(pathSrc, pathDest, filesystem::copy_option::overwrite_if_exists);
749749
#else
750-
boost::filesystem::copy_file(pathSrc, pathDest);
750+
filesystem::copy_file(pathSrc, pathDest);
751751
#endif
752752
LogPrintf("copied wallet.dat to %s\n", pathDest.string());
753753
return true;
754-
} catch(const boost::filesystem::filesystem_error &e) {
754+
} catch(const filesystem::filesystem_error &e) {
755755
LogPrintf("error copying wallet.dat to %s - %s\n", pathDest.string(), e.what());
756756
return false;
757757
}

0 commit comments

Comments
 (0)