Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get raw block endpoint #25

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

benthecarman
Copy link
Contributor

@benthecarman benthecarman commented Oct 29, 2022

This will be needed for implementing LDKs BlockSource trait

@coveralls
Copy link

coveralls commented Oct 31, 2022

Pull Request Test Coverage Report for Build 3364069838

  • 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 3362867644: 1.1%
Covered Lines: 749
Relevant Lines: 936

💛 - Coveralls

@benthecarman
Copy link
Contributor Author

Fixed formatting

Copy link
Contributor

@tnull tnull left a comment

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.)

src/async.rs Outdated Show resolved Hide resolved
src/async.rs Outdated Show resolved Hide resolved
src/blocking.rs Outdated Show resolved Hide resolved
@benthecarman
Copy link
Contributor Author

Responded to @tnull's comments

Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@vladimirfomene vladimirfomene left a comment

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
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.

None yet

4 participants