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:
Renato Britto
2026-03-31 19:31:39 -03:00
parent 9eb6b8ba58
commit 3664d73c4e
+5
View File
@@ -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