crosslinks

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crosslinks struct {
	// contains filtered or unexported fields
}

Crosslinks is helper for processing crosslinks. It has meaning only for shards.

func New

func New() *Crosslinks

New creates new Crosslinks.

func (*Crosslinks) LastKnownCrosslinkHeartbeatSignal

func (a *Crosslinks) LastKnownCrosslinkHeartbeatSignal() *types.CrosslinkHeartbeat

LastKnownCrosslinkHeartbeatSignal returns last set value for heartbeat or nil if not.

func (*Crosslinks) LatestSentCrosslinkBlockNumber

func (a *Crosslinks) LatestSentCrosslinkBlockNumber() uint64

LatestSentCrosslinkBlockNumber returns last set value for crosslink block number or zero if not.

func (*Crosslinks) SetLastKnownCrosslinkHeartbeatSignal

func (a *Crosslinks) SetLastKnownCrosslinkHeartbeatSignal(signal *types.CrosslinkHeartbeat)

SetLastKnownCrosslinkHeartbeatSignal sets last known heartbeat.

func (*Crosslinks) SetLatestSentCrosslinkBlockNumber

func (a *Crosslinks) SetLatestSentCrosslinkBlockNumber(number uint64)

SetLatestSentCrosslinkBlockNumber sets last crosslink block number.

Jump to

Keyboard shortcuts

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