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

Enhancement: ReadFrom for bt.Txs #93

Merged
merged 5 commits into from
Dec 13, 2021
Merged

Conversation

tigh-latte
Copy link
Contributor

Added ReadFrom to the bt.Txs type, along with an example on how to use, to further abstract the chunking of a binary block.

This way users don't need to worry about the varint or tracking their progression through a byte stream.

@mergify mergify bot added the enhancement New feature or request label Dec 10, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 10, 2021

Codecov Report

Merging #93 (d52c4ad) into master (83b0701) will decrease coverage by 0.07%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
- Coverage   83.77%   83.69%   -0.08%     
==========================================
  Files          35       35              
  Lines        3624     3656      +32     
==========================================
+ Hits         3036     3060      +24     
- Misses        424      428       +4     
- Partials      164      168       +4     
Impacted Files Coverage Δ
tx.go 78.51% <75.00%> (-0.25%) ⬇️
bscript/script.go 61.81% <0.00%> (+1.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 83b0701...d52c4ad. Read the comment docs.

// Create buffered reader for this file.
r := bufio.NewReader(f)

// Read file header. This is step is specific to file reading and
Copy link
Member

Choose a reason for hiding this comment

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

typos

Copy link
Contributor

@theflyingcodr theflyingcodr left a comment

Choose a reason for hiding this comment

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

LGTM

@mergify mergify bot merged commit 174ad8a into master Dec 13, 2021
@mergify mergify bot deleted the enhancement/example-readfrom branch December 13, 2021 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants