Skip to content

Implement Deref<Target=UrlClient> for EsploraBlockchain#720

Closed
vladimirfomene wants to merge 2 commits intobitcoindevkit:masterfrom
vladimirfomene:implement-deref-for-esplora-client
Closed

Implement Deref<Target=UrlClient> for EsploraBlockchain#720
vladimirfomene wants to merge 2 commits intobitcoindevkit:masterfrom
vladimirfomene:implement-deref-for-esplora-client

Conversation

@vladimirfomene
Copy link
Copy Markdown
Contributor

@vladimirfomene vladimirfomene commented Aug 15, 2022

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:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

evanlinjin and others added 2 commits August 15, 2022 17:43
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.
@vladimirfomene vladimirfomene force-pushed the implement-deref-for-esplora-client branch from d137119 to d8a87e9 Compare August 15, 2022 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants