package
0.0.0-20230530162105-6dcdc0ec4805
Repository: https://github.com/consideritdone/landslidecore.git
Documentation: pkg.go.dev

# Functions

BadMessage returns a badMessage PeerBehaviour.
BlockPart returns blockPart PeerBehaviour.
ConsensusVote returns a consensusVote PeerBehaviour.
MessageOutOfOrder returns a messagOutOfOrder PeerBehaviour.
NewMockReporter returns a Reporter which records all reported behaviours in memory.
NewSwitchReporter return a new SwitchReporter instance which wraps the Switch.

# Structs

MockReporter is a concrete implementation of the Reporter interface used in reactor tests to ensure reactors report the correct behaviour in manufactured scenarios.
PeerBehaviour is a struct describing a behaviour a peer performed.
SwitchReporter reports peer behaviour to an internal Switch.

# Interfaces

Reporter provides an interface for reactors to report the behaviour of peers synchronously to other components.