Implement Deref<Target=UrlClient> for EsploraBlockchain#720
Closed
vladimirfomene wants to merge 2 commits intobitcoindevkit:masterfrom
Closed
Implement Deref<Target=UrlClient> for EsploraBlockchain#720vladimirfomene wants to merge 2 commits intobitcoindevkit:masterfrom
vladimirfomene wants to merge 2 commits intobitcoindevkit:masterfrom
Conversation
3 tasks
This fixes a bug where `CoreTxIter` attempts to call `listtransactions` immediately after a tx result is filtered (instead of being returned), when in fact, the correct logic will be to pop another tx result. The new logic also ensures that tx results are returned in chonological order. The test `test_list_transactions` verifies this. We also now ensure that `page_size` is between the range `[0 to 1000]` otherwise an error is returned. Some needless cloning is removed from `from_config` as well as logging improvements.
There is currently no way to access the client from the EsploraBlockchain. This makes it difficult for users to extend it's functionality. This PR exposes both the reqwest and ureq clients. This PR is related to PR bitcoindevkit#705.
d137119 to
d8a87e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
There is currently no way to access the client from the EsploraBlockchain. This makes it difficult for users to extend its functionality. This PR exposes both the reqwest and ureq clients. This PR is related to PR #705.
Checklists
All Submissions:
cargo fmtandcargo clippybefore committing