Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 1,410 Lines • ▼ Show 20 Lines | public: | ||||
bool IsWalletFlagSet(uint64_t flag) const override; | bool IsWalletFlagSet(uint64_t flag) const override; | ||||
/** | /** | ||||
* Overwrite all flags by the given uint64_t. | * Overwrite all flags by the given uint64_t. | ||||
* Returns false if unknown, non-tolerable flags are present. | * Returns false if unknown, non-tolerable flags are present. | ||||
*/ | */ | ||||
bool SetWalletFlags(uint64_t overwriteFlags, bool memOnly); | bool SetWalletFlags(uint64_t overwriteFlags, bool memOnly); | ||||
/** Determine if we are a legacy wallet */ | |||||
bool IsLegacy() const; | |||||
/** | /** | ||||
* Returns a bracketed wallet name for displaying in logs, will return | * Returns a bracketed wallet name for displaying in logs, will return | ||||
* [default wallet] if the wallet has no name. | * [default wallet] if the wallet has no name. | ||||
*/ | */ | ||||
const std::string GetDisplayName() const override { | const std::string GetDisplayName() const override { | ||||
std::string wallet_name = | std::string wallet_name = | ||||
GetName().length() == 0 ? "default wallet" : GetName(); | GetName().length() == 0 ? "default wallet" : GetName(); | ||||
return strprintf("[%s]", wallet_name); | return strprintf("[%s]", wallet_name); | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |