multichannel

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsenterSupport

type ConsenterSupport struct {
	SharedConfigVal channelconfig.Orderer

	ChannelConfigVal channelconfig.Channel

	BlockCutterVal *mockblockcutter.Receiver

	BlockByIndex map[uint64]*cb.Block

	Blocks chan *cb.Block

	ChannelIDVal string

	HeightVal uint64

	NextBlockVal *cb.Block

	ClassifyMsgVal msgprocessor.Classification

	ConfigSeqVal uint64

	ProcessNormalMsgErr error

	ProcessConfigUpdateMsgVal *cb.Envelope

	ProcessConfigUpdateMsgErr error

	ProcessConfigMsgVal *cb.Envelope

	ProcessConfigMsgErr error

	SequenceVal uint64

	BlockVerificationErr error
}

func (*ConsenterSupport) Append

func (mcs *ConsenterSupport) Append(block *cb.Block) error

func (*ConsenterSupport) Block

func (mcs *ConsenterSupport) Block(number uint64) *cb.Block

func (*ConsenterSupport) BlockCutter

func (mcs *ConsenterSupport) BlockCutter() blockcutter.Receiver

func (*ConsenterSupport) ChannelConfig

func (mcs *ConsenterSupport) ChannelConfig() channelconfig.Channel

func (*ConsenterSupport) ChannelID

func (mcs *ConsenterSupport) ChannelID() string

func (*ConsenterSupport) ClassifyMsg

func (*ConsenterSupport) CreateNextBlock

func (mcs *ConsenterSupport) CreateNextBlock(data []*cb.Envelope) *cb.Block

func (*ConsenterSupport) Height

func (mcs *ConsenterSupport) Height() uint64

func (*ConsenterSupport) NewSignatureHeader

func (mcs *ConsenterSupport) NewSignatureHeader() (*cb.SignatureHeader, error)

func (*ConsenterSupport) ProcessConfigMsg

func (mcs *ConsenterSupport) ProcessConfigMsg(env *cb.Envelope) (*cb.Envelope, uint64, error)

func (*ConsenterSupport) ProcessConfigUpdateMsg

func (mcs *ConsenterSupport) ProcessConfigUpdateMsg(env *cb.Envelope) (config *cb.Envelope, configSeq uint64, err error)

func (*ConsenterSupport) ProcessNormalMsg

func (mcs *ConsenterSupport) ProcessNormalMsg(env *cb.Envelope) (configSeq uint64, err error)

func (*ConsenterSupport) Sequence

func (mcs *ConsenterSupport) Sequence() uint64

func (*ConsenterSupport) Serialize

func (mcs *ConsenterSupport) Serialize() ([]byte, error)

func (*ConsenterSupport) SharedConfig

func (mcs *ConsenterSupport) SharedConfig() channelconfig.Orderer

func (*ConsenterSupport) Sign

func (mcs *ConsenterSupport) Sign(message []byte) ([]byte, error)

func (*ConsenterSupport) VerifyBlockSignature

func (mcs *ConsenterSupport) VerifyBlockSignature(_ []*protoutil.SignedData, _ *cb.ConfigEnvelope) error

func (*ConsenterSupport) WriteBlock

func (mcs *ConsenterSupport) WriteBlock(block *cb.Block, encodedMetadataValue []byte)

func (*ConsenterSupport) WriteConfigBlock

func (mcs *ConsenterSupport) WriteConfigBlock(block *cb.Block, encodedMetadataValue []byte)

Jump to

Keyboard shortcuts

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