package
0.0.0-20240806202947-369a1d73b513
Repository: https://github.com/overclock-validator/keep-core.git
Documentation: pkg.go.dev

# Functions

DeduplicateMessagesPayloads returns a deduplicated copy of payloads.
ExtractMessagesPayloads gets all messages of type messageType from the state's history, extracts their payloads and tries to cast them to type T.
NewAsyncMachine returns a new protocol asynchronous state machine The context passed to `faststate.NewSyncMachine` must be active as long as the result is not published to the chain or until a fixed time for the protocol execution has not passed.
No description provided by the author
NewSyncMachine returns a new protocol state machine.

# Constants

SilentStateActiveBlocks is a number of blocks for which a SyncState that do not exchange any network messages as a part of its execution should be active.
SilentStateDelayBlocks is a delay in blocks for a SyncState that do not exchange any network messages as a part of its execution.

# Structs

AsyncMachine is a state machine that executes states implementing the AsyncState interface.
BaseAsyncState allows to store all received messages even if they are not used for the currently executed state.
SyncMachine is a state machine that executes states implementing the SyncState interface.

# Interfaces

AsyncState is and interface that should be implemented by protocol states of async.Machine.
SyncState is and interface that should be implemented by protocol states of sync.Machine.