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

refactor(share/sha-256): Consolidate SHA-256 Hash Function Usage #3330

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

kien6034
Copy link
Contributor

@kien6034 kien6034 commented Apr 21, 2024

Closes

Closes #3275

Notes

This PR consolidates SHA-256 hash function into the share/hashutils.go, and replaces all the sha256.New() functions with share.NewSHA256Hasher()

@github-actions github-actions bot added the external Issues created by non node team members label Apr 21, 2024
share/hashutils.go Outdated Show resolved Hide resolved
walldiss
walldiss previously approved these changes Apr 23, 2024
Copy link
Member

@walldiss walldiss left a comment

Choose a reason for hiding this comment

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

Thank you for contribution. LGTM

@codecov-commenter
Copy link

codecov-commenter commented Apr 23, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 44.92%. Comparing base (2469e7a) to head (30c4b03).
Report is 35 commits behind head on main.

Files Patch % Lines
share/share.go 0.00% 2 Missing ⚠️
share/getter.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3330      +/-   ##
==========================================
+ Coverage   44.83%   44.92%   +0.08%     
==========================================
  Files         265      273       +8     
  Lines       14620    15204     +584     
==========================================
+ Hits         6555     6830     +275     
- Misses       7313     7597     +284     
- Partials      752      777      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kien6034
Copy link
Contributor Author

kien6034 commented Apr 23, 2024

@walldiss hi, i've just resolved conflicts with the main branch, which dismissed your review. Can you please review this PR again? Thanks a lot

@Wondertan Wondertan added the kind:refactor Attached to refactoring PRs label Apr 25, 2024
@Wondertan Wondertan enabled auto-merge (squash) April 25, 2024 13:08
@Wondertan Wondertan merged commit fa23cba into celestiaorg:main Apr 25, 2024
26 of 27 checks passed
walldiss pushed a commit to walldiss/celestia-node that referenced this pull request May 7, 2024
…estiaorg#3330)

This PR consolidates SHA-256 hash function into the share/hashutils.go, and replaces all the sha256.New() functions with share.NewSHA256Hasher()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issues created by non node team members kind:refactor Attached to refactoring PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: Consolidate SHA-256 Hash Function Usage
4 participants