![]() |
Bitcoin Core 32.1.0
P2P Digital Currency
|
Descriptor with some wallet metadata. More...
#include <walletutil.h>
Public Member Functions | |
| int32_t | GetStart () const |
| int32_t | GetNext () const |
| int32_t | GetEnd () const |
| void | IncNext () |
| Increments the next_index of the descriptor. | |
| void | DecNext () |
| Increments the next_index of the descriptor. | |
| void | SetEnd (int32_t end) |
| Sets the range_end of the descriptor. | |
| template<typename Stream> | |
| void | Serialize (Stream &s) const |
| WalletDescriptor ()=delete | |
| WalletDescriptor (std::shared_ptr< Descriptor > descriptor, uint64_t creation_time, int32_t range_start, int32_t range_end, int32_t next_index) | |
| void | UpdateFrom (const WalletDescriptor &other) |
| Replaces all metadata (range, start, end, creation time), and cache from another WalletDescriptor if it has the same canonical descriptor string. | |
| bool | IsCanonicallyEquivalent (const WalletDescriptor &other) const |
Static Public Member Functions | |
| template<typename Stream> | |
| static WalletDescriptor | FromStream (deserialize_type, Stream &s) |
Public Attributes | |
| const std::shared_ptr< const Descriptor > | descriptor |
| uint64_t | creation_time = 0 |
| DescriptorCache | cache |
Private Member Functions | |
| uint256 | GetCanonicalHash () const |
Private Attributes | |
| int32_t | range_start = 0 |
| int32_t | next_index = 0 |
| int32_t | range_end = 0 |
| std::optional< uint256 > | m_canonical_hash |
Descriptor with some wallet metadata.
Definition at line 63 of file walletutil.h.
|
delete |
|
inline |
Definition at line 132 of file walletutil.h.
|
inline |
Increments the next_index of the descriptor.
Definition at line 90 of file walletutil.h.
|
inlinestatic |
Definition at line 112 of file walletutil.h.
|
private |
Definition at line 100 of file walletutil.cpp.
|
inline |
|
inline |
Definition at line 80 of file walletutil.h.
|
inline |
|
inline |
Increments the next_index of the descriptor.
Definition at line 84 of file walletutil.h.
| bool wallet::WalletDescriptor::IsCanonicallyEquivalent | ( | const WalletDescriptor & | other | ) | const |
Definition at line 110 of file walletutil.cpp.
|
inline |
Definition at line 105 of file walletutil.h.
|
inline |
Sets the range_end of the descriptor.
Definition at line 96 of file walletutil.h.
| void wallet::WalletDescriptor::UpdateFrom | ( | const WalletDescriptor & | other | ) |
Replaces all metadata (range, start, end, creation time), and cache from another WalletDescriptor if it has the same canonical descriptor string.
The descriptor itself is not replaced to preserve existing serialization to maintain compatibility with previous software versions that expect specific serialization.
Definition at line 88 of file walletutil.cpp.
| DescriptorCache wallet::WalletDescriptor::cache |
Definition at line 77 of file walletutil.h.
| uint64_t wallet::WalletDescriptor::creation_time = 0 |
Definition at line 76 of file walletutil.h.
| const std::shared_ptr<const Descriptor> wallet::WalletDescriptor::descriptor |
Definition at line 75 of file walletutil.h.
|
mutableprivate |
Definition at line 70 of file walletutil.h.
|
private |
Definition at line 67 of file walletutil.h.
|
private |
Definition at line 68 of file walletutil.h.
|
private |
Definition at line 66 of file walletutil.h.