leader

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

README

iBFT round leader selection

A leader can be selected in many ways, we've implemented a simple deterministic leader selection based on a provided seed for each instance, from which the first leader is selected.

Each round the following operator id is selected in a round-robin fashion.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Selector

type Selector interface {
	// Calculate returns the current leader as calculated by the implementation.
	Calculate(round uint64) uint64
}

Selector is interface to implement the leader selection logic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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