package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Packages
Code generated by counterfeiter.
# Functions
NewBlockPullerCreator creates a new BlockPullerCreator, using the configuration details that do not change during the life cycle of the orderer.
NewChain constructs a follower.Chain object.
# Variables
ErrChainStopped is returned when the chain is stopped during execution.
# Structs
BlockPullerCreator creates a ChannelPuller on demand.
Chain implements a component that allows the orderer to follow a specific channel when is not a cluster member, that is, be a "follower" of the cluster.
Options contains some configuration options relevant to the follower.Chain.
# Interfaces
BlockPullerFactory creates a ChannelPuller on demand, and exposes a method to update the a block signature verifier linked to that ChannelPuller.
ChainCreator defines a function that creates a new consensus.Chain for this channel, to replace the current follower.Chain.
ChannelPuller pulls blocks for a channel.
LedgerResources defines some of the interfaces of ledger & config resources needed by the follower.Chain.
# Type aliases
ClusterVerifyBlocksFunc is a function that matches the signature of cluster.VerifyBlocks, and allows mocks for testing.
TimeAfter has the signature of time.After and allows tests to provide an alternative implementation to it.