Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletutil.h
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | public: | ||||
//! Return whether the wallet exists. | //! Return whether the wallet exists. | ||||
bool Exists() const; | bool Exists() const; | ||||
}; | }; | ||||
/** Descriptor with some wallet metadata */ | /** Descriptor with some wallet metadata */ | ||||
class WalletDescriptor { | class WalletDescriptor { | ||||
public: | public: | ||||
std::shared_ptr<Descriptor> descriptor; | std::shared_ptr<Descriptor> descriptor; | ||||
uint64_t creation_time; | uint64_t creation_time = 0; | ||||
int32_t range_start; // First item in range; start of range, inclusive, i.e. | // First item in range; start of range, inclusive, i.e. | ||||
// [range_start, range_end). This never changes. | // [range_start, range_end). This never changes. | ||||
int32_t range_end; // Item after the last; end of range, exclusive, i.e. | int32_t range_start = 0; | ||||
// [range_start, range_end). This will increment with | // Item after the last; end of range, exclusive, i.e. | ||||
// each TopUp() | // [range_start, range_end). This will increment with each TopUp() | ||||
int32_t next_index; // Position of the next item to generate | int32_t range_end = 0; | ||||
// Position of the next item to generate | |||||
int32_t next_index = 0; | |||||
DescriptorCache cache; | DescriptorCache cache; | ||||
ADD_SERIALIZE_METHODS; | ADD_SERIALIZE_METHODS; | ||||
template <typename Stream, typename Operation> | template <typename Stream, typename Operation> | ||||
inline void SerializationOp(Stream &s, Operation ser_action) { | inline void SerializationOp(Stream &s, Operation ser_action) { | ||||
if (ser_action.ForRead()) { | if (ser_action.ForRead()) { | ||||
std::string desc; | std::string desc; | ||||
Show All 26 Lines |