Documentation
¶
Overview ¶
Package malfeasance is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrKnownProof = errors.New("known proof")
)
Functions ¶
func ValidateAndSave ¶
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 ¶
HandleMalfeasanceProof is the gossip receiver for MalfeasanceGossip.
type MockSigVerifier ¶
type MockSigVerifier struct {
// contains filtered or unexported fields
}
MockSigVerifier is a mock of SigVerifier interface.
func NewMockSigVerifier ¶
func NewMockSigVerifier(ctrl *gomock.Controller) *MockSigVerifier
NewMockSigVerifier creates a new mock instance.
func (*MockSigVerifier) EXPECT ¶
func (m *MockSigVerifier) EXPECT() *MockSigVerifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSigVerifierMockRecorder ¶
type MockSigVerifierMockRecorder struct {
// contains filtered or unexported fields
}
MockSigVerifierMockRecorder is the mock recorder for MockSigVerifier.
func (*MockSigVerifierMockRecorder) Verify ¶
func (mr *MockSigVerifierMockRecorder) Verify(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Verify indicates an expected call of Verify.
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.