roundrobin

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoundRobin

type RoundRobin struct {
	// contains filtered or unexported fields
}

RoundRobin robin leader selection will always return the same leader

func New

func New(share *beaconprotocol.Share, state *qbftprotocol.State) *RoundRobin

New returns a new RoundRobin instance.

func (*RoundRobin) Calculate

func (rr *RoundRobin) Calculate(round uint64) uint64

Calculate returns the current leader

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL