Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 572 Bytes
// Holds the ISAACState struct, which is used by
// the ISAACStateManager to handle transition between ballot.
// NodeRunner also holds a copy to efficiently ignore outdated ballot.
package consensus
import (
type ISAACState struct {
Height uint64
Round uint64
BallotState ballot.State
func (s ISAACState) IsLater(target ISAACState) bool {
if s.Height != target.Height {
return s.Height < target.Height
if s.Round != target.Round {
return s.Round < target.Round
return s.BallotState < target.BallotState
You can’t perform that action at this time.