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.
Click to show internal directories.
Click to hide internal directories.