From a23c69ce2854b40b897d7987445c38826a67e99a Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Sat, 12 Oct 2024 21:33:46 +0200 Subject: [PATCH] wallet: fix history --- Cargo.lock | 2 +- src/filters.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2882025..1eab10e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -468,7 +468,7 @@ dependencies = [ [[package]] name = "bp-wallet" version = "0.11.0-beta.8" -source = "git+https://github.com/BP-WG/bp-wallet?branch=develop#1acf19e7cf7cfa089f271d80baaa27cdfe1acadf" +source = "git+https://github.com/BP-WG/bp-wallet?branch=develop#d1b94f2f22d84c8561b89da6920331f846b48a25" dependencies = [ "amplify", "base64", diff --git a/src/filters.rs b/src/filters.rs index 1238adc..2cdbd44 100644 --- a/src/filters.rs +++ b/src/filters.rs @@ -80,6 +80,6 @@ impl<'a, K, D: DescriptorRgb, L2: Layer2> AssignmentsFilter fn should_include(&self, _: impl Into, witness_id: Option) -> 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))) } }