malfeasance

package
v0.2.23-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package malfeasance is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler processes MalfeasanceProof from gossip and, if deems it valid, propagates it to peers.

func NewHandler

func NewHandler(
	cdb *datastore.CachedDB,
	lg log.Log,
	self p2p.Peer,
	cp consensusProtocol,
	pubKeyExtractor *signing.PubKeyExtractor,
) *Handler

func (*Handler) HandleMalfeasanceProof

func (h *Handler) HandleMalfeasanceProof(ctx context.Context, peer p2p.Peer, msg []byte) pubsub.ValidationResult

HandleMalfeasanceProof is the gossip receiver for MalfeasanceProof.

func (*Handler) HandleSyncedMalfeasanceProof

func (h *Handler) HandleSyncedMalfeasanceProof(ctx context.Context, peer p2p.Peer, msg []byte) error

type MockconsensusProtocol

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

MockconsensusProtocol is a mock of consensusProtocol interface.

func NewMockconsensusProtocol

func NewMockconsensusProtocol(ctrl *gomock.Controller) *MockconsensusProtocol

NewMockconsensusProtocol creates a new mock instance.

func (*MockconsensusProtocol) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockconsensusProtocol) HandleEligibility

func (m *MockconsensusProtocol) HandleEligibility(arg0 context.Context, arg1 *types.HareEligibilityGossip)

HandleEligibility mocks base method.

type MockconsensusProtocolMockRecorder

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

MockconsensusProtocolMockRecorder is the mock recorder for MockconsensusProtocol.

func (*MockconsensusProtocolMockRecorder) HandleEligibility

func (mr *MockconsensusProtocolMockRecorder) HandleEligibility(arg0, arg1 interface{}) *gomock.Call

HandleEligibility indicates an expected call of HandleEligibility.

Jump to

Keyboard shortcuts

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