configtx

package
v0.0.0-...-523a819 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	//
	ChainIDVal string

	//
	SequenceVal uint64

	//ApplyVal由Apply返回
	ApplyVal error

	//
	AppliedConfigUpdateEnvelope *cb.ConfigEnvelope

	//validateval由validate返回
	ValidateVal error

	//
	ProposeConfigUpdateError error

	//
	ProposeConfigUpdateVal *cb.ConfigEnvelope

	//configProtoval作为configProtoval()的值返回
	ConfigProtoVal *cb.Config
}

func (*Validator) Apply

func (cm *Validator) Apply(configEnv *cb.ConfigEnvelope) error

func (*Validator) ChainID

func (cm *Validator) ChainID() string

func (*Validator) ConfigProto

func (cm *Validator) ConfigProto() *cb.Config

func (*Validator) ProposeConfigUpdate

func (cm *Validator) ProposeConfigUpdate(update *cb.Envelope) (*cb.ConfigEnvelope, error)

建议配置更新

func (*Validator) Sequence

func (cm *Validator) Sequence() uint64

batchsize返回batchsizeval

func (*Validator) Validate

func (cm *Validator) Validate(configEnv *cb.ConfigEnvelope) error

validate返回validateval

Jump to

Keyboard shortcuts

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