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

service/header: Verify hash matches header retrieved in RequestByHash() #224

Merged
merged 3 commits into from
Nov 23, 2021

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Nov 19, 2021

Resolves #219

TODO

  • tests
  • implement same check for p2p ex

@renaynay renaynay added the area:header Extended header label Nov 19, 2021
liamsi
liamsi previously approved these changes Nov 19, 2021
Copy link
Member

@liamsi liamsi left a comment

Choose a reason for hiding this comment

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

Looks correct. Will the TODOs in the opening comment be resolved here or in follow up PRs?

liamsi
liamsi previously approved these changes Nov 19, 2021
Copy link
Member

@liamsi liamsi left a comment

Choose a reason for hiding this comment

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

image

adlerjohn
adlerjohn previously approved these changes Nov 20, 2021
Copy link
Member

@adlerjohn adlerjohn left a comment

Choose a reason for hiding this comment

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

ahhh I'm approoooving!

service/header/core_exchange.go Show resolved Hide resolved
service/header/exchange.go Outdated Show resolved Hide resolved
liamsi
liamsi previously approved these changes Nov 22, 2021
Copy link
Member

@liamsi liamsi left a comment

Choose a reason for hiding this comment

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

Still approoooving anyways!

Wondertan
Wondertan previously approved these changes Nov 22, 2021
liamsi
liamsi previously approved these changes Nov 22, 2021
@Wondertan Wondertan merged commit a3bb430 into celestiaorg:main Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:header Extended header
Projects
None yet
Development

Successfully merging this pull request may close these issues.

service/header: Exchange should verify that requested hash matches the header
4 participants