Skip to content

Commit 5d7fb31

Browse files
committed
wallet: Add GetWalletFlags
1 parent d70285a commit 5d7fb31

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
@@ -1734,6 +1734,11 @@ void CWallet::InitWalletFlags(uint64_t flags)
17341734
if (!LoadWalletFlags(flags)) assert(false);
17351735
}
17361736

1737+
uint64_t CWallet::GetWalletFlags() const
1738+
{
1739+
return m_wallet_flags;
1740+
}
1741+
17371742
void CWallet::MaybeUpdateBirthTime(int64_t time)
17381743
{
17391744
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
@@ -909,6 +909,8 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
909909
void InitWalletFlags(uint64_t flags);
910910
/** Loads the flags into the wallet. (used by LoadWallet) */
911911
bool LoadWalletFlags(uint64_t flags);
912+
//! Retrieve all of the wallet's flags
913+
uint64_t GetWalletFlags() const;
912914

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

0 commit comments

Comments
 (0)