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-Url: http://internal-gitweb-vhost/parse/src/example_cli/blockdata/script/struct.Wtxid.html?a=commitdiff_plain;h=5d97e136ae89854c53add90d9da9131fec56c4a0;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 6e110048..7ab8963f 100644 --- a/crates/chain/src/tx_data_traits.rs +++ b/crates/chain/src/tx_data_traits.rs @@ -81,6 +81,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 {