Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNilAppStatusHandler = errors.New("nil app status handler")
ErrNilAppStatusHandler is the error returned when the app status handler is nil
var ErrNilChainID = errors.New("nil chain ID")
ErrNilChainID is the error returned when the chain ID is nil
var ErrNilChronologyHandler = errors.New("nil chronology handler")
ErrNilChronologyHandler is the error returned when the chronology handler is nil
var ErrNilConsensusCoreHandler = errors.New("nil consensus core handler")
ErrNilConsensusCoreHandler is the error returned when the consensus core handler is nil
var ErrNilConsensusState = errors.New("nil consensus state")
ErrNilConsensusState is the error returned when the consensus state is nil
var ErrNilCurrentPid = errors.New("nil current PID")
ErrNilCurrentPid is the error returned when the current PID is nil
var ErrNilEnableEpochsHandler = errors.New("nil enable epochs handler")
ErrNilEnableEpochsHandler is the error returned when the enable epochs handler is nil
var ErrNilOutportHandler = errors.New("nil outport handler")
ErrNilOutportHandler is the error returned when the outport handler is nil
var ErrNilSentSignatureTracker = errors.New("nil sent signature tracker")
ErrNilSentSignatureTracker is the error returned when the sent signature tracker is nil
var ErrNilSignatureThrottler = errors.New("nil signature throttler")
ErrNilSignatureThrottler is the error returned when the signature throttler is nil
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