common

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

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