pillar

package
v0.0.7-alphanet Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSyncNotDone        = errors.Errorf("sync is not done")
	ErrPillarNotDefined   = errors.Errorf("pillar has no producer address defined")
	ErrNotOurEvent        = errors.Errorf("not our event")
	ErrEventHasNotStarted = errors.Errorf("current time is before start time")
	ErrEventEnded         = errors.Errorf("current time is after the event's finish time time")
)
View Source
var (
	ErrNothingToGenerate = errors.Errorf("nothing to generate. sequencer-queue is empty")
)

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Init() error
	Start() error
	Stop() error

	// EventListener ensures that we can subscribe to consensus events
	// in order to produce new momentums when necessary
	consensus.EventListener

	// Process is used by the testing environment to force-process an event
	// and be able to wait for it to finish.
	Process(e consensus.ProducerEvent) common.Task

	SetCoinBase(coinbase *wallet.KeyPair)
	GetCoinBase() *types.Address
}

func NewPillar

func NewPillar(chain chain.Chain, consensus consensus.Consensus, broadcaster protocol.Broadcaster) Manager

Jump to

Keyboard shortcuts

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