aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2018-08-02 16:43:55 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2019-05-29 18:40:15 +0900
commit58928098c299efdc7c5ddf2dc20716ca5272f21b (patch)
tree4ad082b71b8c8e72769bc37c1b8b5500edbbaa4c /src/wallet
parent129a5bafd9a3efa2fa16d780885048a06566d262 (diff)
wallet: make IsWalletFlagSet() const
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet.cpp2
-rw-r--r--src/wallet/wallet.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 554090a4ca..3eab069fb6 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -1562,7 +1562,7 @@ void CWallet::UnsetWalletFlagWithDB(WalletBatch& batch, uint64_t flag)
throw std::runtime_error(std::string(__func__) + ": writing wallet flags failed");
}
-bool CWallet::IsWalletFlagSet(uint64_t flag)
+bool CWallet::IsWalletFlagSet(uint64_t flag) const
{
return (m_wallet_flags & flag);
}
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 56046e421a..bd3d721dde 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -1288,7 +1288,7 @@ public:
void UnsetWalletFlag(uint64_t flag);
/** check if a certain wallet flag is set */
- bool IsWalletFlagSet(uint64_t flag);
+ bool IsWalletFlagSet(uint64_t flag) const;
/** overwrite all flags by the given uint64_t
returns false if unknown, non-tolerable flags are present */