proxy

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilAppStatusHandler = errors.New("nil app status handler")

ErrNilAppStatusHandler is the error returned when the app status handler is nil

View Source
var ErrNilChainID = errors.New("nil chain ID")

ErrNilChainID is the error returned when the chain ID is nil

View Source
var ErrNilChronologyHandler = errors.New("nil chronology handler")

ErrNilChronologyHandler is the error returned when the chronology handler is nil

View Source
var ErrNilConsensusCoreHandler = errors.New("nil consensus core handler")

ErrNilConsensusCoreHandler is the error returned when the consensus core handler is nil

View Source
var ErrNilConsensusState = errors.New("nil consensus state")

ErrNilConsensusState is the error returned when the consensus state is nil

View Source
var ErrNilCurrentPid = errors.New("nil current PID")

ErrNilCurrentPid is the error returned when the current PID is nil

View Source
var ErrNilEnableEpochsHandler = errors.New("nil enable epochs handler")

ErrNilEnableEpochsHandler is the error returned when the enable epochs handler is nil

View Source
var ErrNilOutportHandler = errors.New("nil outport handler")

ErrNilOutportHandler is the error returned when the outport handler is nil

View Source
var ErrNilSentSignatureTracker = errors.New("nil sent signature tracker")

ErrNilSentSignatureTracker is the error returned when the sent signature tracker is nil

View Source
var ErrNilSignatureThrottler = errors.New("nil signature throttler")

ErrNilSignatureThrottler is the error returned when the signature throttler is nil

View Source
var ErrNilWorker = errors.New("nil worker")

ErrNilWorker is the error returned when the worker is nil

Functions

This section is empty.

Types

type SubroundsHandler

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

SubroundsHandler struct contains the needed data for the SubroundsHandler

func NewSubroundsHandler

func NewSubroundsHandler(args *SubroundsHandlerArgs) (*SubroundsHandler, error)

NewSubroundsHandler creates a new SubroundsHandler object

func (*SubroundsHandler) EpochConfirmed

func (s *SubroundsHandler) EpochConfirmed(epoch uint32, _ uint64)

EpochConfirmed is called when the epoch is confirmed (this is registered as callback)

func (*SubroundsHandler) IsInterfaceNil

func (s *SubroundsHandler) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*SubroundsHandler) Start

func (s *SubroundsHandler) Start(epoch uint32) error

Start starts the sub-rounds handler

type SubroundsHandlerArgs

type SubroundsHandlerArgs struct {
	Chronology           consensus.ChronologyHandler
	ConsensusCoreHandler spos.ConsensusCoreHandler
	ConsensusState       spos.ConsensusStateHandler
	Worker               factory.ConsensusWorker
	SignatureThrottler   core.Throttler
	AppStatusHandler     core.AppStatusHandler
	OutportHandler       outport.OutportHandler
	SentSignatureTracker spos.SentSignaturesTracker
	EnableEpochsHandler  core.EnableEpochsHandler
	ChainID              []byte
	CurrentPid           core.PeerID
}

SubroundsHandlerArgs struct contains the needed data for the SubroundsHandler

Jump to

Keyboard shortcuts

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