Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixedLeader ¶
FixedLeader uses a fixed leader.
func NewFixedLeader ¶
func NewFixedLeader(leaderID config.ReplicaID) *FixedLeader
NewFixedLeader returns a new fixed leader pacemaker
func (*FixedLeader) Init ¶
func (p *FixedLeader) Init(hs *hotstuff.HotStuff)
func (*FixedLeader) Run ¶
func (p *FixedLeader) Run(ctx context.Context)
Run runs the pacemaker which will beat when the previous QC is completed
type RoundRobin ¶
RoundRobin change leader in a RR fashion. The amount of commands to be executed before it changes leader can be customized.
func NewRoundRobin ¶
NewRoundRobin returns a new round robin pacemaker
func (*RoundRobin) GetLeader ¶
func (p *RoundRobin) GetLeader(view int) config.ReplicaID
GetLeader returns the fixed ID of the leader for the view height
func (*RoundRobin) Init ¶
func (p *RoundRobin) Init(hs *hotstuff.HotStuff)
func (*RoundRobin) Run ¶
func (p *RoundRobin) Run(ctx context.Context)
Run runs the pacemaker which will beat when the previous QC is completed
Click to show internal directories.
Click to hide internal directories.