]> 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)
committer志宇 <hello@evanlinjin.me>
Fri, 6 Mar 2026 07:01:41 +0000 (07:01 +0000)
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 6e1100485476bd99219007b3989923385d242089..7ab8963f4c4f11e59d6c64bb93946173000358e3 100644 (file)
@@ -81,6 +81,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 {