Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,9 @@ impl Wallet {
///
/// Returns whether the given index was present and then removed from the unused set.
pub fn mark_used(&mut self, keychain: KeychainKind, index: u32) -> bool {
self.tx_graph.index.mark_used(keychain, index)
self.tx_graph
.index
.mark_used(self.map_keychain(keychain), index)
}

/// Undoes the effect of [`mark_used`] and returns whether the `index` was inserted
Expand All @@ -741,7 +743,9 @@ impl Wallet {
///
/// [`mark_used`]: Self::mark_used
pub fn unmark_used(&mut self, keychain: KeychainKind, index: u32) -> bool {
self.tx_graph.index.unmark_used(keychain, index)
self.tx_graph
.index
.unmark_used(self.map_keychain(keychain), index)
}

/// List addresses that are revealed but unused.
Expand Down