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

lotus-shed: add consensus check command #3933

Merged
merged 1 commit into from
Sep 21, 2020
Merged

Conversation

travisperson
Copy link
Contributor

Consensus check verifies that all nodes share a common tipset for a given height.

The height flag specifies a chain height to start a comparison from. There are two special arguments for this flag. All other expected values should be chain tipset heights.
@common - Use the maximum common chain height between all nodes
@expected - Use the current time and the genesis timestamp to determine a height

Examples

Find the highest common tipset and look back 10 tipsets

lotus-shed consensus check --height @common --lookback 10

Calculate the expected tipset height and look back 10 tipsets

lotus-shed consensus check --height @expected --lookback 10

Check if nodes all share a common genesis

lotus-shed consensus check --height 0

Check that all nodes agree upon the tipset for 1day post genesis

lotus-shed consensus check --height 2880 --lookback 0

@travisperson travisperson force-pushed the feat/lotus-shed-consensus branch from c18e02d to b3d0a5f Compare September 20, 2020 20:26
Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

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

Noice

@magik6k magik6k merged commit 14588d1 into master Sep 21, 2020
@magik6k magik6k deleted the feat/lotus-shed-consensus branch September 21, 2020 16:54
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