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 (*Handler) HandleMalfeasanceProof ¶
func (h *Handler) HandleMalfeasanceProof(ctx context.Context, peer p2p.Peer, msg []byte) pubsub.ValidationResult
HandleMalfeasanceProof is the gossip receiver for MalfeasanceProof.
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 ¶
func (m *MockconsensusProtocol) EXPECT() *MockconsensusProtocolMockRecorder
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.
Click to show internal directories.
Click to hide internal directories.