Documentation ¶
Index ¶
- type ConsenterSupport
- func (mcs *ConsenterSupport) Append(block *cb.Block) error
- func (mcs *ConsenterSupport) Block(number uint64) *cb.Block
- func (mcs *ConsenterSupport) BlockCutter() blockcutter.Receiver
- func (mcs *ConsenterSupport) ChannelConfig() channelconfig.Channel
- func (mcs *ConsenterSupport) ChannelID() string
- func (mcs *ConsenterSupport) ClassifyMsg(chdr *cb.ChannelHeader) msgprocessor.Classification
- func (mcs *ConsenterSupport) CreateNextBlock(data []*cb.Envelope) *cb.Block
- func (mcs *ConsenterSupport) Height() uint64
- func (mcs *ConsenterSupport) NewSignatureHeader() (*cb.SignatureHeader, error)
- func (mcs *ConsenterSupport) ProcessConfigMsg(env *cb.Envelope) (*cb.Envelope, uint64, error)
- func (mcs *ConsenterSupport) ProcessConfigUpdateMsg(env *cb.Envelope) (config *cb.Envelope, configSeq uint64, err error)
- func (mcs *ConsenterSupport) ProcessNormalMsg(env *cb.Envelope) (configSeq uint64, err error)
- func (mcs *ConsenterSupport) Sequence() uint64
- func (mcs *ConsenterSupport) Serialize() ([]byte, error)
- func (mcs *ConsenterSupport) SharedConfig() channelconfig.Orderer
- func (mcs *ConsenterSupport) Sign(message []byte) ([]byte, error)
- func (mcs *ConsenterSupport) VerifyBlockSignature(_ []*protoutil.SignedData, _ *cb.ConfigEnvelope) error
- func (mcs *ConsenterSupport) WriteBlock(block *cb.Block, encodedMetadataValue []byte)
- func (mcs *ConsenterSupport) WriteConfigBlock(block *cb.Block, encodedMetadataValue []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsenterSupport ¶
type ConsenterSupport struct { 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) 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 (mcs *ConsenterSupport) ClassifyMsg(chdr *cb.ChannelHeader) msgprocessor.Classification
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 (*ConsenterSupport) ProcessConfigUpdateMsg ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.