Skip to content

Commit 850801e

Browse files
committed
wallet: Add GetWalletFlags
1 parent 728afc9 commit 850801e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,11 @@ void CWallet::InitWalletFlags(uint64_t flags)
17251725
if (!LoadWalletFlags(flags)) assert(false);
17261726
}
17271727

1728+
uint64_t CWallet::GetWalletFlags() const
1729+
{
1730+
return m_wallet_flags;
1731+
}
1732+
17281733
void CWallet::MaybeUpdateBirthTime(int64_t time)
17291734
{
17301735
int64_t birthtime = m_birth_time.load();

src/wallet/wallet.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,8 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
908908
void InitWalletFlags(uint64_t flags);
909909
/** Loads the flags into the wallet. (used by LoadWallet) */
910910
bool LoadWalletFlags(uint64_t flags);
911+
//! Retrieve all of the wallet's flags
912+
uint64_t GetWalletFlags() const;
911913

912914
/** Returns a bracketed wallet name for displaying in logs, will return [default wallet] if the wallet has no name */
913915
std::string GetDisplayName() const override

0 commit comments

Comments
 (0)