fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/ledger/util Index | Files

package util

import "github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/ledger/util"

Index

Package Files

txvalidationflags.go

type TxValidationFlags Uses

type TxValidationFlags []uint8

TxValidationFlags is array of transaction validation codes. It is used when committer validates block.

func NewTxValidationFlags Uses

func NewTxValidationFlags(size int) TxValidationFlags

NewTxValidationFlags Create new object-array of validation codes with target size. Default values: TxValidationCode_NOT_VALIDATED

func (TxValidationFlags) Flag Uses

func (obj TxValidationFlags) Flag(txIndex int) peer.TxValidationCode

Flag returns validation code at specified transaction

func (TxValidationFlags) IsInvalid Uses

func (obj TxValidationFlags) IsInvalid(txIndex int) bool

IsInvalid checks if specified transaction is invalid

func (TxValidationFlags) IsSetTo Uses

func (obj TxValidationFlags) IsSetTo(txIndex int, flag peer.TxValidationCode) bool

IsSetTo returns true if the specified transaction equals flag; false otherwise.

func (TxValidationFlags) IsValid Uses

func (obj TxValidationFlags) IsValid(txIndex int) bool

IsValid checks if specified transaction is valid

Package util imports 1 packages (graph) and is imported by 2 packages. Updated 2019-09-15. Refresh now. Tools for package owners.