validator

package
v0.0.0-...-1294cc9 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 2 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 {
}

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(payload *common.Payload, envBytes []byte, env *common.Envelope) (error, peer.TxValidationCode)

VSCCValidateTx does nothing

Jump to

Keyboard shortcuts

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