From 57c569e4d9779e2263848770e0ba7eab3054a1bf Mon Sep 17 00:00:00 2001 From: Karl-Johan Alm Date: Mon, 2 Mar 2020 17:23:34 +0900 Subject: [PATCH] wallet: make BackupWallet() const --- src/wallet/wallet.cpp | 2 +- src/wallet/wallet.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 94bcd4ba682..9d2e5598e84 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4004,7 +4004,7 @@ void CWallet::postInitProcess() chain().requestMempoolTransactions(*this); } -bool CWallet::BackupWallet(const std::string& strDest) +bool CWallet::BackupWallet(const std::string& strDest) const { return database->Backup(strDest); } diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 158482dc445..864e180adbf 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1098,7 +1098,7 @@ public: */ void postInitProcess(); - bool BackupWallet(const std::string& strDest); + bool BackupWallet(const std::string& strDest) const; /* Returns true if HD is enabled */ bool IsHDEnabled() const;