incoming

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDecidedInRange added in v0.1.0

func GetDecidedInRange(identifier []byte, start, end uint64, logger *zap.Logger, storage collections.Iibft) ([]*proto.SignedMessage, error)

GetDecidedInRange returns decided messages of the validator (and role) for the given range

Types

type ReqHandler

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

ReqHandler is responsible for syncing and iBFT instance when needed by fetching decided messages from the network

func New

func New(
	logger *zap.Logger,
	identifier []byte,
	seqNumber int64,
	network network.Network,
	storage collections.Iibft,
	lastChangeRoundMsg *proto.SignedMessage,
) *ReqHandler

New returns a new instance of ReqHandler

func (*ReqHandler) Process

func (s *ReqHandler) Process(msg *network.SyncChanObj)

Process takes a req and processes it

Jump to

Keyboard shortcuts

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