feat(wallet): add transactions_sort_by function#1477
feat(wallet): add transactions_sort_by function#1477notmandatory merged 1 commit intobitcoindevkit:masterfrom
Conversation
92daee4 to
06e695e
Compare
06e695e to
fb1599d
Compare
ValuedMammal
left a comment
There was a problem hiding this comment.
ACK fb1599d
This looks good. I'm curious if users will also be interested in a list that includes transactions that may not be in the current active chain as was mentioned in #794 (comment)
I like the idea of being able to show TX that are not in the valid chain due to RBF or reorg for a future PR. The idea with this one is to provide only the basic sort functionality for lang bindings to expose. |
|
This only adds a new function and doesn't break any existing APIs so I'm moving this to the beta milestone so we can focus on breaking changes. |
oleonardolima
left a comment
There was a problem hiding this comment.
Looks good! I just left a single comment about the documentation.
|
Also, we'll still need to work on bitcoindevkit/bdk_wallet#106 in the future, right ? |
Yes because this is a simple |
|
@notmandatory I'm happy to merge this now tbh. It doesn't conflict or break anything. |
|
Just adding a +1 for merging this PR 🚀 |
fb1599d to
00d24ff
Compare
|
Rebased and fixed docs. |
0003980 to
90b393a
Compare
Added type WalletTx<'a> as an alias for CanonicalTx<'a, Arc<Transaction>, ConfirmationBlockTime>.
90b393a to
83a0247
Compare
|
Back by popular demand, merging this now instead of later. |
|
woohoo! |
Description
Added new type alias
WalletTxwhich represents aCanonicalTx<'a, Arc<Transaction>, ConfirmationTimeHeightAnchor>and newWallet::transactions_sort_bythat returns aVec<WalletTx>sorted by the given compare function.Notes to the reviewers
fixes #794
Changelog notice
WalletTxwhich represents aCanonicalTx<'a, Arc<Transaction>, ConfirmationTimeHeightAnchor>.Wallet::transactions_sort_by()that returns aVec<WalletTx>sorted by a given compare function.Checklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features: