|
Ran
|
Jobs
1
|
Files
4
|
Run time
1min
|
Badge
README BADGES
|
push
github
Merge bitcoindevkit/rust-esplora-client#114: feat(client): add new `submit_package` api to blocking/async client cf64f976b feat(client): add new `submit_package` API (acidbunny21) Pull request description: ### Description Add new `submit_package` method to both `BlockingClient` and `AsyncClient`, as it's now supported by Esplora API, see: https://github.com/Blockstream/electrs/pull/119, https://github.com/Blockstream/electrs/pull/159. Also, adds new `SubmitPackageResult`, `TxResult`, and `MempoolFeesSubmitPackage` API structures. It updates the internal `post_request_hex` method to `post_request_bytes`, now handling `query_params` and having `Response` as return type. Additionally, updates the internals of `broadcast` to utilize the new `post_request` and `post_request_bytes` without breaking its API. ### Notes to the reviewers As mentioned in the PR comments, I updated the original commit by `@acidbunny21` by: - (i) adding `@ValuedMammal`'s suggested fixes; - (ii) removing the breaking change on the `broadcast` API, it's now a follow-up in https://github.com/bitcoindevkit/rust-esplora-client/pull/151. ### Changelog notice ``` ### Added - feat(client): add new `submit_package` API to `BlockingClient` and `AsyncClient` - feat(api): add new `SubmitPackageResult`, `TxResult`, and `MempoolFeesSubmitPackage` API structures ### Changed - feat(client): update the `post_request_hex` method to `post_request_bytes`, now handling `query_params` and having `Response` as return type. - feat(client): update the internals of the `broadcast` method to use new `post_request` and `post_request_bytes`, with no breaking change. ``` ### 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 `just p` before pushing #### New Features: * [ ] I've a... (continued)
32 of 102 new or added lines in 3 files covered. (31.37%)
8 existing lines in 2 files now uncovered.1402 of 1618 relevant lines covered (86.65%)
8.28 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 12 |
65.56 |
-10.09% | src/api.rs |
| 29 |
76.44 |
-6.9% | src/async.rs |
| 29 |
76.11 |
-7.56% | src/blocking.rs |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
76.44 |
-6.9% | src/async.rs |
| 7 |
76.11 |
-7.56% | src/blocking.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 20725239190.1 | 4 |
86.65 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|