Skip to content

Commit

Permalink
wallet: make IsWalletFlagSet() const
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewoof committed May 29, 2019
1 parent 129a5ba commit 5892809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet.h
Expand Up @@ -1288,7 +1288,7 @@ class CWallet final : public CCryptoKeyStore, private interfaces::Chain::Notific
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 */
Expand Down

0 comments on commit 5892809

Please sign in to comment.