common

package
v0.44.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: AGPL-3.0 Imports: 3 Imported by: ? modules, 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 BaseKeyValueStoreStateMachine

type BaseKeyValueStoreStateMachine struct {
	EvolvingState protocol_state.KVStoreMutator
	// contains filtered or unexported fields
}

BaseKeyValueStoreStateMachine implements a subset of the KeyValueStoreStateMachine interface which is usually common to all state machines that operate on the KV store. All implementors can override the methods as needed.

func NewBaseKeyValueStoreStateMachine

func NewBaseKeyValueStoreStateMachine(
	candidateView uint64,
	parentState protocol.KVStoreReader,
	evolvingState protocol_state.KVStoreMutator,
) BaseKeyValueStoreStateMachine

NewBaseKeyValueStoreStateMachine creates a new instance of BaseKeyValueStoreStateMachine.

func (*BaseKeyValueStoreStateMachine) Build

Build is a no-op by default. If a state machine needs to persist data, it should override this method.

func (*BaseKeyValueStoreStateMachine) ParentState

ParentState returns parent state associated with this state machine.

func (*BaseKeyValueStoreStateMachine) View

View returns the view associated with this state machine. The view of the state machine equals the view of the block carrying the respective updates.

Jump to

Keyboard shortcuts

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