tendermint

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application[V types.Hashable[H], H types.Hash] interface {
	// Value returns the value to the Tendermint consensus algorithm which can be proposed to other validators.
	Value() V

	// Valid returns true if the provided value is valid according to the application context.
	Valid(V) bool
}

type CachedProposal added in v0.14.4

type CachedProposal[V types.Hashable[H], H types.Hash, A types.Addr] struct {
	types.Proposal[V, H, A]
	Valid bool
	ID    *H
}

type Slasher

type Slasher[M types.Message[V, H, A], V types.Hashable[H], H types.Hash, A types.Addr] interface {
	// Equivocation informs the slasher that a validator has sent conflicting messages. Thus it can decide whether to
	// slash the validator and by how much.
	Equivocation(msgs ...M)
}

type StateMachine added in v0.14.4

type StateMachine[V types.Hashable[H], H types.Hash, A types.Addr] interface {
	Height() types.Height
	ProcessStart(types.Round) []actions.Action[V, H, A]
	ProcessTimeout(types.Timeout) []actions.Action[V, H, A]
	ProcessProposal(*types.Proposal[V, H, A]) []actions.Action[V, H, A]
	ProcessPrevote(*types.Prevote[H, A]) []actions.Action[V, H, A]
	ProcessPrecommit(*types.Precommit[H, A]) []actions.Action[V, H, A]
	ProcessWAL(wal.Entry[V, H, A]) []actions.Action[V, H, A]
	ProcessSync(*types.Proposal[V, H, A], []types.Precommit[H, A]) []actions.Action[V, H, A]
}

func New

func New[V types.Hashable[H], H types.Hash, A types.Addr](
	logger log.Logger,
	nodeAddr A,
	app Application[V, H],
	vals votecounter.Validators[A],
	height types.Height,
) StateMachine[V, H, A]

Jump to

Keyboard shortcuts

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