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 timestamp and parent_timestamp to finality leaf nodes. #392

Merged
merged 21 commits into from
Jul 25, 2024
Merged

Conversation

greg7mdp
Copy link
Contributor

@greg7mdp greg7mdp commented Jul 23, 2024

Each finality leaf node commits to that block's timestamp (called timestamp), and also the timestamp of the parent block as well (called parent_timestamp). This data is always accessible from the finality_core (except for the genesis block). For the genesis block, the parent_timestamp is simply be the the earliest representable timestamp.

IBC unit tests have been updated to that this addition into account (thanks Guillaume!).

@greg7mdp greg7mdp linked an issue Jul 23, 2024 that may be closed by this pull request
@greg7mdp greg7mdp marked this pull request as draft July 23, 2024 12:33
@greg7mdp greg7mdp marked this pull request as ready for review July 24, 2024 13:55
@greg7mdp greg7mdp requested a review from heifner July 24, 2024 15:10
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: INTERNALS
summary: Add timestamp and parent_timestamp to finality leaf nodes.
Note:end

@systemzax systemzax added the consensus-protocol Change to the consensus protocol. Impacts light client validation. label Jul 24, 2024
libraries/chain/block_state.cpp Outdated Show resolved Hide resolved
@greg7mdp greg7mdp merged commit c3fda08 into main Jul 25, 2024
36 checks passed
@greg7mdp greg7mdp deleted the gh_387 branch July 25, 2024 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus-protocol Change to the consensus protocol. Impacts light client validation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add timestamp and parent_timestamp to finality leaf nodes
5 participants