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(nodebuilder/share/cmd)!: Take block height instead of ExtendedHeader as argument for share cmds #2872

Merged
merged 15 commits into from
Oct 30, 2023

Conversation

bao1029p
Copy link
Contributor

Description

Replace extended headers with block height as an argument in shares cmd

Issues close

Close #2848

Changes made

  • Replace all uses of extended header as an argument with block height in nodebuilder/share/cmd/share.go.
  • Add logic to fetch header first with block height for

@github-actions github-actions bot added the external Issues created by non node team members label Oct 24, 2023
@bao1029p bao1029p marked this pull request as ready for review October 24, 2023 15:40
Wondertan
Wondertan previously approved these changes Oct 24, 2023
Copy link
Member

@Wondertan Wondertan 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!
Have one more request

nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
@renaynay renaynay changed the title replace eh with block height refactor(nodebuilder/share/cmd)!: Take block height instead of ExtendedHeader as argument for share cmds Oct 26, 2023
@bao1029p
Copy link
Contributor Author

hey @Wondertan, i added both usage of block hash and height in

nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
nodebuilder/share/cmd/share.go Outdated Show resolved Hide resolved
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

Approving. Did you test it out manually? Please do if not and then we can merge

@bao1029p
Copy link
Contributor Author

Approving. Did you test it out manually? Please do if not and then we can merge

yes i've tested it and everything work great

@Wondertan Wondertan enabled auto-merge (squash) October 30, 2023 13:29
@Wondertan Wondertan added kind:break! Attached to breaking PRs kind:refactor Attached to refactoring PRs area:cli labels Oct 30, 2023
Copy link
Collaborator

@distractedm1nd distractedm1nd left a comment

Choose a reason for hiding this comment

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

utACK

@Wondertan Wondertan merged commit 2066478 into celestiaorg:main Oct 30, 2023
17 of 19 checks passed
@gitpoap-bot
Copy link

gitpoap-bot bot commented Oct 30, 2023

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2023 Celestia Contributor:

GitPOAP: 2023 Celestia Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:cli external Issues created by non node team members kind:break! Attached to breaking PRs kind:refactor Attached to refactoring PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

modshare/cmd: use height as an argument intead of full ExtendedHeader
5 participants