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

feat(sidecar): consensus state validation #98

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

namn-grg
Copy link
Contributor

@namn-grg namn-grg commented Jul 1, 2024

No description provided.

@namn-grg namn-grg requested a review from merklefruit July 1, 2024 11:35
Comment on lines +114 to +119
/// Get the current timestamp.
fn current_timestamp() -> u64 {
return SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.as_secs();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just a util function, ideally should be in utils.rs (not sure of the file structure in rust)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

NOTE - the precision of the deadline is in seconds. We might want to do it in mili seconds or smaller

Copy link
Collaborator

Choose a reason for hiding this comment

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

Seconds is fine for now!

Copy link
Collaborator

@merklefruit merklefruit left a comment

Choose a reason for hiding this comment

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

This is in the right direction! Happy to merge as is and iterate over it in further PRs to unlock some other work on this part.

@merklefruit merklefruit marked this pull request as ready for review July 1, 2024 15:04
@merklefruit merklefruit merged commit c7dff35 into feat/consensus-state Jul 1, 2024
@merklefruit merklefruit deleted the ng/feat/consensus-state branch July 1, 2024 15:18
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