Skip to content

Commit bc2a26b

Browse files
committed
wallet: Add GetWalletFlags
1 parent 69f588a commit bc2a26b

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
@@ -906,6 +906,8 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
906906
void InitWalletFlags(uint64_t flags);
907907
/** Loads the flags into the wallet. (used by LoadWallet) */
908908
bool LoadWalletFlags(uint64_t flags);
909+
//! Retrieve all of the wallet's flags
910+
uint64_t GetWalletFlags() const;
909911

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

0 commit comments

Comments
 (0)