misbehavior

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package misbehavior implements the misbehavior reports service.

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(logger *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