-
Notifications
You must be signed in to change notification settings - Fork 329
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(wallet): add transactions_sort_by function #1477
feat(wallet): add transactions_sort_by function #1477
Conversation
92daee4
to
06e695e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor comment.
06e695e
to
fb1599d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK fb1599d
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I just left a single comment about the documentation.
Also, we'll still need to work on #1333 in the future, right ? |
@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
WalletTx
which represents aCanonicalTx<'a, Arc<Transaction>, ConfirmationTimeHeightAnchor>
and newWallet::transactions_sort_by
that returns aVec<WalletTx>
sorted by the given compare function.Notes to the reviewers
fixes #794
Changelog notice
WalletTx
which represents aCanonicalTx<'a, Arc<Transaction>, ConfirmationTimeHeightAnchor>
.Wallet::transactions_sort_by()
that returns aVec<WalletTx>
sorted by a given compare function.Checklists
All Submissions:
cargo fmt
andcargo clippy
before committingNew Features: