Skip to content

Add get raw block endpoint#25

Merged
vladimirfomene merged 1 commit into
bitcoindevkit:masterfrom
benthecarman:get-block
Nov 1, 2022
Merged

Add get raw block endpoint#25
vladimirfomene merged 1 commit into
bitcoindevkit:masterfrom
benthecarman:get-block

Conversation

@benthecarman

@benthecarman benthecarman commented Oct 29, 2022

Copy link
Copy Markdown
Contributor

This will be needed for implementing LDKs BlockSource trait

@coveralls

coveralls commented Oct 31, 2022

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 3358164056

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 47 of 50 (94.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.1%) to 80.021%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/blocking.rs 11 14 78.57%
Totals Coverage Status
Change from base Build 3313936566: 1.1%
Covered Lines: 749
Relevant Lines: 936

💛 - Coveralls

@benthecarman

Copy link
Copy Markdown
Contributor Author

Fixed formatting

@tnull tnull left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good, just two slight naming/doc suggestions.

(Btw, depending on your use case you might want to look into LDK's Confirm interface that allows syncing without supplying full blocks and hence is probably the better choice for most lighter weight client applications that would choose Esplora/Electrum.)

Comment thread src/async.rs Outdated
Comment thread src/async.rs Outdated
Comment thread src/blocking.rs Outdated
@benthecarman

Copy link
Copy Markdown
Contributor Author

Responded to @tnull's comments

@benthecarman benthecarman requested a review from tnull October 31, 2022 19:30

@tnull tnull left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vladimirfomene vladimirfomene left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK. Code LGTM

@vladimirfomene vladimirfomene merged commit e24663b into bitcoindevkit:master Nov 1, 2022
@benthecarman benthecarman deleted the get-block branch November 8, 2022 23:31
chrono-raven6i90 added a commit to chrono-raven6i90/rust-esplora-client that referenced this pull request Oct 28, 2025
199c6ec85ea895fc6bb08a2ff76f3f98ea9af39d Add get raw block endpoint (benthecarman)

Pull request description:

  This will be needed for implementing LDKs `BlockSource` trait

Top commit has no ACKs.

Tree-SHA512: b59f4933f6ba03dc36805b9728e57f480fe33a1e1908d2affa1028c27548fd4426c66261a087f5414bf790380c4f68f8ed8d8012f84deaa039f96a746d3f3ad2
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.

4 participants