validator

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockValidator

type MockValidator struct {
	mock.Mock
}

MockValidator implements a mock validation useful for testing

func (*MockValidator) Validate

func (m *MockValidator) Validate(block *common.Block) error

Validate does nothing, returning no error

type MockVsccValidator

type MockVsccValidator struct {
}

MockVsccValidator is a mock implementation of the VSCC validation interface

func (*MockVsccValidator) VSCCValidateTx

func (v *MockVsccValidator) VSCCValidateTx(seq int, payload *common.Payload, envBytes []byte, block *common.Block) (error, peer.TxValidationCode)

VSCCValidateTx does nothing

Jump to

Keyboard shortcuts

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