Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chain,wallet)!: rm ConfirmationTime #1643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

evanlinjin
Copy link
Member

@evanlinjin evanlinjin commented Oct 8, 2024

Description

This PR removes ConfirmationTime, and favors ChainPosition<ConfirmationBlockTime> instead. The only difference between these two structures is that ChainPosition<ConfirmationBlockTime> contains an additional BlockHash. Additionally, ConfirmationTime was not used in many places. It was mainly for displaying information in bdk_wallet::Wallet.

We also impl serde::Deserialize and serde::Serialize for ChainPosition.

Notes to the reviewers

Changelog notice

  • Remove bdk_chain::ConfirmationTime. Use ChainPosition<ConfirmationBlockTime> in place.

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

We rm `ConfirmationTime` because it is essentially the same thing as
`ChainPosition<ConfirmationBlockTime>` without the block hash.

We also impl `serde::Deserialize` and `serde::Serialize` for
`ChainPosition`.
@evanlinjin evanlinjin marked this pull request as ready for review October 9, 2024 04:43
@evanlinjin evanlinjin self-assigned this Oct 10, 2024
@evanlinjin evanlinjin added api A breaking API change chore labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api A breaking API change chore
Projects
Status: Needs Review
Development

Successfully merging this pull request may close these issues.

1 participant