Skip to content

Consensus tests#135

Closed
ebuchman wants to merge 10 commits intodevelopfrom
consensus_tests
Closed

Consensus tests#135
ebuchman wants to merge 10 commits intodevelopfrom
consensus_tests

Conversation

@ebuchman
Copy link
Contributor

  • validators precommit nil in a round if they haven't seen a POL in that round
  • timeoutChan so we can log timeouts (from propose, prevoteWait, precommitWait) and for better control in testing
  • series of test suites to test the consensus state machine
  • allow validators to commit once they see +2/3 precommits from a previous round (ie. the halt1 bug)

Copy link
Contributor

Choose a reason for hiding this comment

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

There are none. I meant, "keep it side-effect free"

@ebuchman
Copy link
Contributor Author

ebuchman commented Sep 9, 2015

ok that cleans up the commits, reverts some of my weirdness, and addVote takes a valIndex (consequently, AddByIndex returns the address). gonna work on evsw and consensus events

Copy link
Contributor

Choose a reason for hiding this comment

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

Should move into EnterNewRound with boolean timeout=true after condition check, because it didn't necessarily timeout (e.g. it could have gone to commit).

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