Skip to content

Commit 5892809

Browse files
committed
wallet: make IsWalletFlagSet() const
1 parent 129a5ba commit 5892809

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ void CWallet::UnsetWalletFlagWithDB(WalletBatch& batch, uint64_t flag)
15621562
throw std::runtime_error(std::string(__func__) + ": writing wallet flags failed");
15631563
}
15641564

1565-
bool CWallet::IsWalletFlagSet(uint64_t flag)
1565+
bool CWallet::IsWalletFlagSet(uint64_t flag) const
15661566
{
15671567
return (m_wallet_flags & flag);
15681568
}

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ class CWallet final : public CCryptoKeyStore, private interfaces::Chain::Notific
12881288
void UnsetWalletFlag(uint64_t flag);
12891289

12901290
/** check if a certain wallet flag is set */
1291-
bool IsWalletFlagSet(uint64_t flag);
1291+
bool IsWalletFlagSet(uint64_t flag) const;
12921292

12931293
/** overwrite all flags by the given uint64_t
12941294
returns false if unknown, non-tolerable flags are present */

0 commit comments

Comments
 (0)