Ran
|
Files
48
|
Run time
1s
|
Badge
README BADGES
|
push
github
Merge bitcoindevkit/bdk#1477: feat(wallet): add transactions_sort_by function 83a0247e8 feat(wallet): add transactions_sort_by function (Steve Myers) Pull request description: ### Description Added new type alias `WalletTx` which represents a `CanonicalTx<'a, Arc<Transaction>, ConfirmationTimeHeightAnchor>` and new `Wallet::transactions_sort_by` that returns a `Vec<WalletTx>` sorted by the given compare function. ### Notes to the reviewers fixes #794 ### Changelog notice * Add new type alias `WalletTx` which represents a `CanonicalTx<'a, Arc<Transaction>, ConfirmationTimeHeightAnchor>`. * Add `Wallet::transactions_sort_by()` that returns a `Vec<WalletTx>` sorted by a given compare function. ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing #### New Features: * [x] I've added tests for the new feature * [x] I've added docs for the new feature Top commit has no ACKs. Tree-SHA512: 5758b5edf3da2585104b907644fd4b0f4d3
11224 of 13680 relevant lines covered (82.05%)
13632.08 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|---|---|---|---|---|---|---|
0.0 | crates/wallet/src/lib.rs | 51 | 3 | 0 | 3 | 0.0 | |
0.0 | crates/hwi/src/signer.rs | 95 | 25 | 0 | 25 | 0.0 | |
6.38 | crates/wallet/src/descriptor/error.rs | 128 | 47 | 3 | 44 | 3.0 | |
12.79 | crates/wallet/src/wallet/error.rs | 261 | 86 | 11 | 75 | 8.0 | |
13.64 | crates/chain/src/balance.rs | 54 | 22 | 3 | 19 | 63.0 | |
30.77 | crates/chain/src/example_utils.rs | 30 | 13 | 4 | 9 | 84.0 | |
33.33 | crates/chain/src/lib.rs | 130 | 18 | 6 | 12 | 298.0 | |
36.36 | crates/chain/src/descriptor_ext.rs | 39 | 11 | 4 | 7 | 9746.0 + 42 | |
40.0 | crates/file_store/src/lib.rs | 43 | 15 | 6 | 9 | 530.0 | |
46.15 | crates/wallet/src/wallet/persisted.rs | 379 | 143 | 66 | 77 | 27.0 |