mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
wallet: Add GetWalletFlags
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user