actionmanager

package
v0.2.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MaxMessagePropagationTime = 60 * time.Second

MaxMessagePropagationTime is the maximum time we're expecting a message to take to propagate across the network. We wait double this before allowing a validator to start.

Variables

This section is empty.

Functions

This section is empty.

Types

type LastActionManager

type LastActionManager interface {
	NewTip(row *chainindex.BlockRow, block *primitives.Block, state state.State, receipts []*primitives.EpochReceipt)
	ShouldRun(val [48]byte) bool
	GetNonce() uint64
	RegisterAction(b [48]byte, at time.Time, nonce uint64)
}

LastActionManager is an interface for lastActionManager

func NewLastActionManager

func NewLastActionManager(h host.Host, ch chain.Blockchain) (LastActionManager, error)

NewLastActionManager creates a new last action manager.

Jump to

Keyboard shortcuts

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