Skip to content

chore: update data root tuple genesis comment #144

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

Merged
merged 2 commits into from
May 1, 2023
Merged

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented Apr 18, 2023

Overview

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@rach-id rach-id added the documentation Improvements or additions to documentation label Apr 18, 2023
@rach-id rach-id requested a review from adlerjohn April 18, 2023 00:53
@rach-id rach-id self-assigned this Apr 18, 2023
@rach-id rach-id merged commit 03f0ab6 into master May 1, 2023
@rach-id rach-id deleted the SweeXordious-patch-1 branch May 1, 2023 21:42
@@ -7,7 +7,8 @@ pragma solidity ^0.8.4;
/// https://github.com/celestiaorg/celestia-specs/blob/master/src/specs/data_structures.md#header
struct DataRootTuple {
// Celestia block height the data root was included in.
// Genesis block is height = 1.
// Genesis block is height = 0.
Copy link
Member

Choose a reason for hiding this comment

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

One minor nit: It is the genesis file that has height 0. The block at height 1 will reference the genesis file as its parent. It is only semantics but I would argue that the first block is the one produced by consensus and the genesis file does not really count as a block as it is not produced by the same consensus protocol.

Question: Does the genesis file / the initial chain state play any role here at all? Isn't the first relevant block only that with height 1? If not, can you clarify how the genesis file plays a role in this smart contract?

Copy link
Member Author

Choose a reason for hiding this comment

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

It doesn't play any role in the smart contract, it's just a comment to specify from where the data commitments will start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants