mirror of
https://github.com/LORDBABUINO/stealth.git
synced 2026-06-10 22:33:31 -07:00
fixup! refactor(model): convert core crate into model for types and interfaces
Track all addresses derived from wallet descriptors in WalletHistory, not only internal/change addresses. This gives TxGraph a complete address set to compare ownership against later.
This commit is contained in:
@@ -202,6 +202,11 @@ pub struct WalletHistory {
|
||||
/// Populated by the descriptor scan path; may be empty for wallet scans.
|
||||
#[serde(default, with = "serde_addr_set")]
|
||||
pub internal_addresses: HashSet<Address<NetworkUnchecked>>,
|
||||
/// Every address derived from ALL wallet descriptors (external + internal).
|
||||
/// Used by `TxGraph` to seed `our_addrs`, matching the Python reference
|
||||
/// which uses `set(addr_map.keys())` over all derived addresses.
|
||||
#[serde(default, with = "serde_addr_set")]
|
||||
pub derived_addresses: HashSet<Address<NetworkUnchecked>>,
|
||||
}
|
||||
|
||||
/// A participant (input or output) in a transaction, enriched with
|
||||
|
||||
Reference in New Issue
Block a user