Skip to content

Commit a23c69c

Browse files
committed
wallet: fix history
1 parent 3111cd0 commit a23c69c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/filters.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ impl<'a, K, D: DescriptorRgb<K>, L2: Layer2> AssignmentsFilter
8080
fn should_include(&self, _: impl Into<XOutpoint>, witness_id: Option<XWitnessId>) -> bool {
8181
self.0
8282
.history()
83-
.any(|row| witness_id == Some(XChain::Bitcoin(row.txid)))
83+
.any(|row| !row.our_inputs.is_empty() && witness_id == Some(XChain::Bitcoin(row.txid)))
8484
}
8585
}

0 commit comments

Comments
 (0)