validator

package
v0.0.0-...-c6a6ad8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 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