internal

package
v0.0.0-...-4373be5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastMessage

type BroadcastMessage[T any, S constraints.Ordered] struct {
	Message T               // message
	R       S               // sequence number
	P       commons.Address // sender
}

type DAG

type DAG interface {
	VertexExist(v *commons.BaseVertex) bool
	AllEdgesExist(v *commons.Vertex) bool
	Path(v, u *commons.Vertex) bool
	StrongPath(v, u *commons.Vertex) bool
	NewRoundIfNotExists(r commons.Round)
	GetRound(r commons.Round) VertexRoundSet
	SetDelivered(v *commons.Vertex, delivered bool)
	String() string
}

func NewDAG

func NewDAG() DAG

type ValidatorSet

type ValidatorSet interface {
	NewWaveIfNotExists(w commons.Wave)
	GetWave(w commons.Wave) collections.Set[commons.Address]
	String() string
}

func NewValidatorSet

func NewValidatorSet() ValidatorSet

type VertexRoundSet

type VertexRoundSet interface {
	Entries() []commons.Vertex
	AddVertex(v commons.Vertex) bool
	SourceExists(a commons.Address) bool
	GetBySource(a commons.Address) commons.Vertex
	SetDelivered(a commons.Address, delivered bool)
	Size() int
}

Jump to

Keyboard shortcuts

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