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

chore(spec): Update BlockHeader and Tx to conform to specification #34

Closed
wants to merge 3 commits into from

Conversation

Mercurial
Copy link
Contributor

@Mercurial Mercurial commented Jan 28, 2024

This PR adds / updates the following structure to conform to th U5C specs.

BlockHeader:

  • Before

    • slot: uint64
    • hash: bytes
  • After

    • slot: uint64
    • height: uint64
    • hash: bytes
image

Spec

Adding the block number / height also addresses the issue: #29

Tx:

In the case of Tx I'm proposing adding the field hash: bytes to the specificiation that is the hash the tx.

As pointed out by this issue: #24

…reflect U5C spec

Also renamed BlockRef.Index -> Slot
@Mercurial Mercurial changed the title chore(spec): Update BlockHeader, BlockRef and Tx to conform to specification chore(spec): Update BlockHeader and Tx to conform to specification Jan 30, 2024
@Mercurial Mercurial requested review from scarmuega and domMayhew and removed request for scarmuega January 30, 2024 11:10
Copy link
Contributor

@domMayhew domMayhew left a comment

Choose a reason for hiding this comment

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

I don't know u5c well enough to comment on the value of these changes, but the changes in the proto files match what you've described and look good to me!

@Mercurial Mercurial closed this Feb 12, 2024
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.

2 participants