fabric: github.com/hyperledger/fabric/core/mocks/validator Index | Files

package validator

import "github.com/hyperledger/fabric/core/mocks/validator"


Package Files


type MockValidator Uses

type MockValidator struct {

MockValidator implements a mock validation useful for testing

func (*MockValidator) Validate Uses

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

Validate does nothing, returning no error

type MockVsccValidator Uses

type MockVsccValidator struct {

MockVsccValidator is a mock implementation of the VSCC validation interface

func (*MockVsccValidator) VSCCValidateTx Uses

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

VSCCValidateTx does nothing

Package validator imports 3 packages (graph). Updated 2020-01-14. Refresh now. Tools for package owners.