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 Block Hash endpoint implementation (retrieve branches) #241

Conversation

EdwinGuayacan
Copy link
Contributor

Fixes #221

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)
  • This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

EdwinGuayacan and others added 2 commits January 12, 2023 15:54
Co-authored-by: David Roldán <Odraxs@users.noreply.github.com>
@EdwinGuayacan EdwinGuayacan marked this pull request as ready for review January 12, 2023 22:05
lib/chainweb/p2p/block_hash.ex Outdated Show resolved Hide resolved
lib/chainweb/p2p/block_hash_request_body.ex Outdated Show resolved Hide resolved
test/chainweb/p2p/block_hash_test.exs Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link

@einerzg einerzg left a comment

Choose a reason for hiding this comment

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

@EdwinGuayacan two comments!!!

README.md Outdated Show resolved Hide resolved
test/chainweb/p2p/block_hash_test.exs Show resolved Hide resolved
test/chainweb/p2p/block_hash_test.exs Show resolved Hide resolved
Copy link
Member

@miguelnietoa miguelnietoa left a comment

Choose a reason for hiding this comment

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

Guys, giving a second review I realize that these tests are out of the describe "retrieve/1"

  • error with an invalid next
  • error with an invalid chain_id
  • error with a non existing location

@EdwinGuayacan EdwinGuayacan merged commit 6685dd3 into kommitters:v0.13 Jan 16, 2023
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.

3 participants