msgcont

package
v0.2.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageContainer

type MessageContainer interface {
	// ReadOnlyMessagesByRound returns messages by the given round
	ReadOnlyMessagesByRound(round message.Round) []*message.SignedMessage

	// QuorumAchieved returns true if enough msgs were received (round, value)
	QuorumAchieved(round message.Round, value []byte) (bool, []*message.SignedMessage)

	PartialChangeRoundQuorum(stateRound message.Round) (found bool, lowestChangeRound message.Round)

	// AddMessage adds the given message to the container
	AddMessage(msg *message.SignedMessage, data []byte)

	// OverrideMessages will override all current msgs in container with the provided msg
	OverrideMessages(msg *message.SignedMessage, data []byte)
}

MessageContainer represents the behavior of the message container

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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