bdk icon indicating copy to clipboard operation
bdk copied to clipboard

feat(chain,wallet)!: rm `ConfirmationTime`

Open evanlinjin opened this issue 1 year ago • 3 comments

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:

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

evanlinjin avatar Oct 08 '24 09:10 evanlinjin

ACK a3d4eef77d427b290e1d0041d3c760b8fe29f6a2

LagginTimes avatar Oct 18 '24 11:10 LagginTimes

@evanlinjin should we add this to the 1.0-beta milestone? It's a breaking change but looks straight forward and has two ACKs.

notmandatory avatar Oct 20 '24 23:10 notmandatory

@notmandatory I agree. I think this makes sense to be part of 1.0-beta.

evanlinjin avatar Oct 22 '24 12:10 evanlinjin