actionmanager

package
v0.1.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 16 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)
	StartValidator(valPub [48]byte, sign func(*primitives.ValidatorHelloMessage) *bls.Signature) bool
	ShouldRun(val [48]byte) bool
	RegisterActionAt(by [48]byte, at time.Time, nonce uint64)
	RegisterAction(by [48]byte, nonce uint64)
	GetNonce() uint64
}

LastActionManager is an interface for lastActionManager

func NewLastActionManager

func NewLastActionManager(node hostnode.HostNode, 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