wallet: Add GetWalletFlags

This commit is contained in:
Ava Chow
2025-05-12 14:00:28 -07:00
parent 69f588a99a
commit bc2a26b296
2 changed files with 7 additions and 0 deletions

View File

@@ -1739,6 +1739,11 @@ void CWallet::InitWalletFlags(uint64_t flags)
if (!LoadWalletFlags(flags)) assert(false);
}
uint64_t CWallet::GetWalletFlags() const
{
return m_wallet_flags;
}
void CWallet::MaybeUpdateBirthTime(int64_t time)
{
int64_t birthtime = m_birth_time.load();

View File

@@ -906,6 +906,8 @@ public:
void InitWalletFlags(uint64_t flags);
/** Loads the flags into the wallet. (used by LoadWallet) */
bool LoadWalletFlags(uint64_t flags);
//! Retrieve all of the wallet's flags
uint64_t GetWalletFlags() const;
/** Returns a bracketed wallet name for displaying in logs, will return [default wallet] if the wallet has no name */
std::string GetDisplayName() const override