misbehavior

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggingMisbehaviorService

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

LoggingMisbehaviorService provides an implementation of the MisbehaviorService interface that logs misbehavior reports without storing them or forwarding to the network.

func NewLoggingMisbehaviorService

func NewLoggingMisbehaviorService(log *zap.Logger) *LoggingMisbehaviorService

func (*LoggingMisbehaviorService) SafetyFailure

func (m *LoggingMisbehaviorService) SafetyFailure(report *SafetyFailureReport) error

type MisbehaviorService

type MisbehaviorService interface {
	SafetyFailure(report *SafetyFailureReport) error
}

type SafetyFailureReport

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

func NewSafetyFailureReport

func NewSafetyFailureReport(
	misbehavingNodeId uint32,
	misbehaviorType proto.Misbehavior,
	submittedByNode bool,
	envs []*envelopes.OriginatorEnvelope,
) (*SafetyFailureReport, error)

Jump to

Keyboard shortcuts

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