]> Untitled Git - bdk/commitdiff
fix(chain): forward `confirmation_height_upper_bound` in `Anchor` impl for `&A`
author志宇 <hello@evanlinjin.me>
Sat, 14 Feb 2026 00:21:20 +0000 (00:21 +0000)
committerLeonardo Lima <oleonardolima@users.noreply.github.com>
Wed, 11 Mar 2026 17:11:42 +0000 (14:11 -0300)
The blanket `Anchor` impl for `&A` was missing the
`confirmation_height_upper_bound` method, causing it to fall back to
the default implementation instead of delegating to the inner type.

crates/chain/src/tx_data_traits.rs

index 74d1021f6236d5b8519b6c81d674ec497ddc0630..62ab29100e606631a29288f7b1a742c26cb86079 100644 (file)
@@ -80,6 +80,10 @@ impl<A: Anchor> Anchor for &A {
     fn anchor_block(&self) -> BlockId {
         <A as Anchor>::anchor_block(self)
     }
+
+    fn confirmation_height_upper_bound(&self) -> u32 {
+        <A as Anchor>::confirmation_height_upper_bound(self)
+    }
 }
 
 impl Anchor for BlockId {