consensus

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 Chain

type Chain interface {
	Order(env *cb.Envelope, configSeq uint64) error

	Configure(config *cb.Envelope, configSeq uint64) error

	WaitReady() error

	Errored() <-chan struct{}

	Start()

	Halt()
}

type Consenter

type Consenter interface {
	HandleChain(support ConsenterSupport, metadata *cb.Metadata) (Chain, error)
}

type ConsenterSupport

type ConsenterSupport interface {
	identity.SignerSerializer
	msgprocessor.Processor

	VerifyBlockSignature([]*protoutil.SignedData, *cb.ConfigEnvelope) error

	BlockCutter() blockcutter.Receiver

	SharedConfig() channelconfig.Orderer

	ChannelConfig() channelconfig.Channel

	CreateNextBlock(messages []*cb.Envelope) *cb.Block

	Block(number uint64) *cb.Block

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

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

	Sequence() uint64

	ChannelID() string

	Height() uint64

	Append(block *cb.Block) error
}

type MetadataValidator

type MetadataValidator interface {
	ValidateConsensusMetadata(oldMetadata, newMetadata []byte, newChannel bool) error
}

type NoOpMetadataValidator

type NoOpMetadataValidator struct {
}

func (NoOpMetadataValidator) ValidateConsensusMetadata

func (n NoOpMetadataValidator) ValidateConsensusMetadata(oldMetadataBytes, newMetadataBytes []byte, newChannel bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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