Skip to content

fix(chain): forward confirmation_height_upper_bound in Anchor implementation for &A#2120

Merged
ValuedMammal merged 1 commit intobitcoindevkit:masterfrom
evanlinjin:fix/forward-confirmation-height-upper-bound-anchor
Mar 6, 2026
Merged

fix(chain): forward confirmation_height_upper_bound in Anchor implementation for &A#2120
ValuedMammal merged 1 commit intobitcoindevkit:masterfrom
evanlinjin:fix/forward-confirmation-height-upper-bound-anchor

Conversation

@evanlinjin
Copy link
Member

Description

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.

Changelog notice

Fixed:

- The `Anchor::confirmation_height_upper_bound` impl was missing for `&A`, causing it to fallback to the default impl.

Checklists

All Submissions:

Bugfixes:

* [ ] This pull request breaks the existing API
* [ ] I've added tests to reproduce the issue which are now passing
* [ ] I'm linking the issue being fixed by this PR

@evanlinjin evanlinjin added the bug Something isn't working label Feb 14, 2026
@evanlinjin evanlinjin self-assigned this Feb 14, 2026
@oleonardolima oleonardolima added this to the Chain 0.24.0 milestone Feb 20, 2026
@oleonardolima oleonardolima moved this to In Progress in BDK Chain Feb 20, 2026
@oleonardolima oleonardolima self-requested a review February 20, 2026 16:54
Copy link
Contributor

@Dmenec Dmenec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approach ACK

replacing &self with self should fix the Clippy lint that is breaking CI

fn confirmation_height_upper_bound(&self) -> u32 {
    <A as Anchor>::confirmation_height_upper_bound(self)
}

@Serious-Sam-Dev
Copy link

approach ACK, how the comment above says

approach ACK

replacing &self with self should fix the Clippy lint that is breaking CI

fn confirmation_height_upper_bound(&self) -> u32 {
    <A as Anchor>::confirmation_height_upper_bound(self)
}

only change need is to fix the clippy, all another test is ok

…l 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.
@evanlinjin evanlinjin force-pushed the fix/forward-confirmation-height-upper-bound-anchor branch from eba8df9 to 5d97e13 Compare March 6, 2026 07:01
Copy link
Contributor

@Dmenec Dmenec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK 5d97e13

@ValuedMammal
Copy link
Collaborator

ACK 5d97e13

@ValuedMammal ValuedMammal merged commit fb05873 into bitcoindevkit:master Mar 6, 2026
17 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in BDK Chain Mar 6, 2026
evanlinjin added a commit that referenced this pull request Mar 12, 2026
…` in `Anchor` implementation for `&A`

00d7f62 fix(chain): forward `confirmation_height_upper_bound` in `Anchor` impl for `&A` (志宇)

Pull request description:

  ### Description

  Backport of #2120
  Depends on #2148

  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.

  ### Changelog notice

  ```md
  Fixed:

  - The `Anchor::confirmation_height_upper_bound` impl was missing for `&A`, causing it to fallback to the default impl.
  ```

  ### Checklists

  #### All Submissions:

  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)

ACKs for top commit:
  luisschwab:
    ACK 00d7f62
  notmandatory:
    ACK 00d7f62

Tree-SHA512: 919ecc07e82e4c902ba30b576a4617ff63afc17eb4176410dac9abdbec5425a0ba7139312768365386c1d59bd7eb6b733bbae45c8a25d628996135dd226f715f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants