Skip to content

Commit

Permalink
Merge branch 'fix/history' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 12, 2024
2 parents 3111cd0 + a23c69c commit ce55bc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ impl<'a, K, D: DescriptorRgb<K>, L2: Layer2> AssignmentsFilter
fn should_include(&self, _: impl Into<XOutpoint>, witness_id: Option<XWitnessId>) -> bool {
self.0
.history()
.any(|row| witness_id == Some(XChain::Bitcoin(row.txid)))
.any(|row| !row.our_inputs.is_empty() && witness_id == Some(XChain::Bitcoin(row.txid)))
}

Check warning on line 84 in src/filters.rs

View check run for this annotation

Codecov / codecov/patch

src/filters.rs#L80-L84

Added lines #L80 - L84 were not covered by tests
}

0 comments on commit ce55bc4

Please sign in to comment.