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)
Click to show internal directories.
Click to hide internal directories.