From: 志宇 Date: Sat, 14 Feb 2026 00:21:20 +0000 (+0000) Subject: fix(chain): forward `confirmation_height_upper_bound` in `Anchor` impl for `&A` X-Git-Tag: core-0.6.3~3^2 X-Git-Url: http://internal-gitweb-vhost/?a=commitdiff_plain;h=00d7f6257715849558c9c22923c183ea6cc3f1e5;p=bdk fix(chain): forward `confirmation_height_upper_bound` in `Anchor` impl for `&A` 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. --- diff --git a/crates/chain/src/tx_data_traits.rs b/crates/chain/src/tx_data_traits.rs index 74d1021f..62ab2910 100644 --- a/crates/chain/src/tx_data_traits.rs +++ b/crates/chain/src/tx_data_traits.rs @@ -80,6 +80,10 @@ impl Anchor for &A { fn anchor_block(&self) -> BlockId { ::anchor_block(self) } + + fn confirmation_height_upper_bound(&self) -> u32 { + ::confirmation_height_upper_bound(self) + } } impl Anchor for BlockId {