Skip to content

Consensus tests - #135

Closed
ebuchman wants to merge 10 commits into
developfrom
consensus_tests
Closed

ebuchman wants to merge 10 commits into
developfrom
consensus_tests

Conversation

@ebuchman

Copy link
Copy Markdown
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)

Comment thread consensus/state.go Outdated

Copy link
Copy Markdown
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

ebuchman commented Sep 9, 2015

Copy link
Copy Markdown
Contributor Author

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

Comment thread consensus/state.go

Copy link
Copy Markdown
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