Skip to content

Conversation

oleonardolima
Copy link
Contributor

  • use a closure for is_block_in_chain instead of passing chain and chain_tip to CanonicalIter, therefore removing it's dependency on ChainOracle.
  • update the TxGraph::try_list_canonical_txs to initialize the CanonicalIter with a closure querying the ChainOracle, update it's API to not return an error anymore.
  • FIXME: the ChainOracle query error is currently being ignored as the idea is to removed the ChainOracle trait altogether.
  • FIXME: it's still required to update the APIs from TxGraph that depends on the ChainOracle.

Description

Notes to the reviewers

Changelog notice

Checklists

All Submissions:

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

- use a closure for `is_block_in_chain` instead of passing `chain` and
  `chain_tip` to `CanonicalIter`, therefore removing it's dependency on
`ChainOracle`.
- update the `TxGraph::try_list_canonical_txs` to initialize the
  `CanonicalIter` with a closure querying the `ChainOracle`, update it's
API to not return an error anymore.
- FIXME: the ChainOracle query error is currently being ignored as the
  idea is to removed the ChainOracle trait altogether.
- FIXME: it's still required to update the APIs from `TxGraph` that
  depends on the `ChainOracle`.
@oleonardolima
Copy link
Contributor Author

I'll probably close this one, as it's being superseded by #2038. Still need to check if it'll.

@oleonardolima oleonardolima added the api A breaking API change label Sep 19, 2025
@oleonardolima
Copy link
Contributor Author

I'll probably close this one, as it's being superseded by #2038. Still need to check if it'll.

I guess it'll be best to continue working on this one after #2038 lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api A breaking API change
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant