Skip to content

Commit df34e29

Browse files
committed
wallet: Add GetWalletFlags
1 parent 6d44917 commit df34e29

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
@@ -1726,6 +1726,11 @@ void CWallet::InitWalletFlags(uint64_t flags)
17261726
if (!LoadWalletFlags(flags)) assert(false);
17271727
}
17281728

1729+
uint64_t CWallet::GetWalletFlags() const
1730+
{
1731+
return m_wallet_flags;
1732+
}
1733+
17291734
void CWallet::MaybeUpdateBirthTime(int64_t time)
17301735
{
17311736
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
@@ -912,6 +912,8 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
912912
void InitWalletFlags(uint64_t flags);
913913
/** Loads the flags into the wallet. (used by LoadWallet) */
914914
bool LoadWalletFlags(uint64_t flags);
915+
//! Retrieve all of the wallet's flags
916+
uint64_t GetWalletFlags() const;
915917

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

0 commit comments

Comments
 (0)