Skip to content

Commit

Permalink
Merge bitcoindevkit#1724: Type constraint on list canonical tx
Browse files Browse the repository at this point in the history
2db98ba fix(chain): type constraint on list canonical tx (Rob N)

Pull request description:

  Closes bitcoindevkit#1690

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

  #### New Features:

  * [ ] I've added tests for the new feature
  * [ ] I've added docs for the new feature

  #### 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

ACKs for top commit:
  ValuedMammal:
    ACK 2db98ba

Tree-SHA512: 29a6b193dd1e9030541e389a6f4f3154edddf9cb2401c451468d6b0af8b2e00d807770cc8ec587f79f6cb1dabd87598dec9a1b3e63d0bda40ce75948805a3458
  • Loading branch information
ValuedMammal committed Nov 18, 2024
2 parents b8c736c + 2db98ba commit 3bc45b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/chain/src/tx_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ impl<A: Anchor> TxGraph<A> {
/// This is the infallible version of [`try_list_canonical_txs`].
///
/// [`try_list_canonical_txs`]: Self::try_list_canonical_txs
pub fn list_canonical_txs<'a, C: ChainOracle + 'a>(
pub fn list_canonical_txs<'a, C: ChainOracle<Error = Infallible> + 'a>(
&'a self,
chain: &'a C,
chain_tip: BlockId,
Expand Down

0 comments on commit 3bc45b5

Please sign in to comment.