Added CommitTimeWait step, the state machine model changed a bit.

This commit is contained in:
Jae Kwon
2014-10-21 18:30:03 -07:00
parent 5ffe406f16
commit 89418ee7af
7 changed files with 243 additions and 92 deletions

View File

@ -10,6 +10,7 @@ import (
)
// Not goroutine-safe.
// TODO: consider validator Accum overflow?
type ValidatorSet struct {
validators merkle.Tree
proposer *Validator // Whoever has the highest Accum.