wallet: Add GetWalletFlags
This commit is contained in:
1 parent
69f588a99a
commit
bc2a26b296
2 files changed
+7
No files matched your search
@@ -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