Documentation ¶
Index ¶
- type SlashingViolationsConsumer
- func (c *SlashingViolationsConsumer) OnSenderEjectedError(identity *flow.Identity, peerID, msgType string, err error)
- func (c *SlashingViolationsConsumer) OnUnAuthorizedSenderError(identity *flow.Identity, peerID, msgType string, err error)
- func (c *SlashingViolationsConsumer) OnUnknownMsgTypeError(identity *flow.Identity, peerID, msgType string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlashingViolationsConsumer ¶
type SlashingViolationsConsumer struct {
// contains filtered or unexported fields
}
SlashingViolationsConsumer is a struct that logs a message for any slashable offences. This struct will be updated in the future when slashing is implemented.
func NewSlashingViolationsConsumer ¶
func NewSlashingViolationsConsumer(log zerolog.Logger) *SlashingViolationsConsumer
NewSlashingViolationsConsumer returns a new SlashingViolationsConsumer
func (*SlashingViolationsConsumer) OnSenderEjectedError ¶
func (c *SlashingViolationsConsumer) OnSenderEjectedError(identity *flow.Identity, peerID, msgType string, err error)
OnSenderEjectedError logs a warning for sender ejected error
func (*SlashingViolationsConsumer) OnUnAuthorizedSenderError ¶
func (c *SlashingViolationsConsumer) OnUnAuthorizedSenderError(identity *flow.Identity, peerID, msgType string, err error)
OnUnAuthorizedSenderError logs a warning for unauthorized sender error
func (*SlashingViolationsConsumer) OnUnknownMsgTypeError ¶
func (c *SlashingViolationsConsumer) OnUnknownMsgTypeError(identity *flow.Identity, peerID, msgType string, err error)
OnUnknownMsgTypeError logs a warning for unknown message type error
Click to show internal directories.
Click to hide internal directories.