wallet: make IsWalletFlagSet() const
This commit is contained in:
parent
129a5bafd9
commit
58928098c2
2 changed files with 2 additions and 2 deletions
|
@ -1562,7 +1562,7 @@ void CWallet::UnsetWalletFlagWithDB(WalletBatch& batch, uint64_t flag)
|
||||||
throw std::runtime_error(std::string(__func__) + ": writing wallet flags failed");
|
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);
|
return (m_wallet_flags & flag);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1288,7 +1288,7 @@ public:
|
||||||
void UnsetWalletFlag(uint64_t flag);
|
void UnsetWalletFlag(uint64_t flag);
|
||||||
|
|
||||||
/** check if a certain wallet flag is set */
|
/** 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
|
/** overwrite all flags by the given uint64_t
|
||||||
returns false if unknown, non-tolerable flags are present */
|
returns false if unknown, non-tolerable flags are present */
|
||||||
|
|
Loading…
Reference in a new issue