Skip to content

Remove TxGraph::missing_heights as ChangeSet::missing_heights_from should have replaced it#1126

Closed
evanlinjin wants to merge 3 commits intobitcoindevkit:masterfrom
evanlinjin:rm_missing_heights
Closed

Remove TxGraph::missing_heights as ChangeSet::missing_heights_from should have replaced it#1126
evanlinjin wants to merge 3 commits intobitcoindevkit:masterfrom
evanlinjin:rm_missing_heights

Conversation

@evanlinjin
Copy link
Copy Markdown
Member

Description

ChangeSet::missing_heights_from is introduced as a simpler alternative to TxGraph::missing_heights. We should remove TxGraph::missing_heights and use ChangeSet::missing_heights_from instead.

Notes to the reviewers

WIP

Changelog notice

Remove TxGraph::missing_heights and use ChangeSet::missing_heights_from instead.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • 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

@evanlinjin evanlinjin force-pushed the rm_missing_heights branch 2 times, most recently from 301558c to 6406d53 Compare September 15, 2023 03:11
Also publicly expose `bdk::wallet::Update` as `bdk::Update`.
We use `ChangeSet::missing_heights_from` in favour of
`TxGraph::missing_heights`.

`test_missing_blocks` is renamed to `test_changeset_missing_blocks_from`
and the test is updated.
@nondiremanuel nondiremanuel added this to the 1.0.0-beta.0 milestone Sep 26, 2023
@notmandatory notmandatory modified the milestones: 1.0.0-beta.0, 1.0.0-alpha.4 Nov 13, 2023
@notmandatory
Copy link
Copy Markdown
Member

I'm moving this back to new alpha.4 release since it looks like a large-ish functional change.

@LLFourn
Copy link
Copy Markdown
Collaborator

LLFourn commented Nov 16, 2023

I think I've expressed directly to evan that I think this is a bad change. TxGraph::missing_heights is a useful method on its own. The names should be made consistent though.

@notmandatory notmandatory added the discussion There's still a discussion ongoing label Dec 5, 2023
@nondiremanuel nondiremanuel modified the milestones: 1.0.0-alpha.4, 1.0.0 Jan 6, 2024
@notmandatory notmandatory added the api A breaking API change label Jan 16, 2024
@LLFourn
Copy link
Copy Markdown
Collaborator

LLFourn commented Jan 17, 2024

Haven't heard anything back from @evanlinjin so closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api A breaking API change discussion There's still a discussion ongoing

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants