Skip to content

Commit 7f804ff

Browse files
committed
wallet: Add GetWalletFlags
1 parent c61c87a commit 7f804ff

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
@@ -1739,6 +1739,11 @@ void CWallet::InitWalletFlags(uint64_t flags)
17391739
if (!LoadWalletFlags(flags)) assert(false);
17401740
}
17411741

1742+
uint64_t CWallet::GetWalletFlags() const
1743+
{
1744+
return m_wallet_flags;
1745+
}
1746+
17421747
void CWallet::MaybeUpdateBirthTime(int64_t time)
17431748
{
17441749
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)