diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -638,7 +638,7 @@ int32_t m_max_cached_index = -1; OutputType m_address_type; - bool m_internal; + bool m_internal = false; KeyMap m_map_keys GUARDED_BY(cs_desc_man); CryptedKeyMap m_map_crypted_keys GUARDED_BY(cs_desc_man); diff --git a/src/wallet/walletutil.h b/src/wallet/walletutil.h --- a/src/wallet/walletutil.h +++ b/src/wallet/walletutil.h @@ -99,13 +99,15 @@ class WalletDescriptor { public: std::shared_ptr descriptor; - uint64_t creation_time; - int32_t range_start; // First item in range; start of range, inclusive, i.e. - // [range_start, range_end). This never changes. - int32_t range_end; // Item after the last; end of range, exclusive, i.e. - // [range_start, range_end). This will increment with - // each TopUp() - int32_t next_index; // Position of the next item to generate + uint64_t creation_time = 0; + // First item in range; start of range, inclusive, i.e. + // [range_start, range_end). This never changes. + int32_t range_start = 0; + // Item after the last; end of range, exclusive, i.e. + // [range_start, range_end). This will increment with each TopUp() + int32_t range_end = 0; + // Position of the next item to generate + int32_t next_index = 0; DescriptorCache cache; ADD_SERIALIZE_METHODS;