Documentation
¶
Index ¶
Constants ¶
const (
// AnchorPeersKey is the cb.ConfigurationItem type key name for the AnchorPeers message
AnchorPeersKey = "AnchorPeers"
)
Peer config keys
Variables ¶
This section is empty.
Functions ¶
func DefaultAnchorPeers ¶
func DefaultAnchorPeers() *cb.ConfigurationItem
DefaultAnchorPeers creates a headerless configuration item for the default orderer addresses
func TemplateAnchorPeers ¶
func TemplateAnchorPeers(anchorPeers []*pb.AnchorPeer) *cb.ConfigurationItem
TemplateAnchorPeers creates a headerless configuration item representing the anchor peers
Types ¶
type Descriptor ¶
type Descriptor interface {
// AnchorPeers returns the list of anchor peers for the channel
AnchorPeers() []*pb.AnchorPeer
}
Descriptor stores the common peer configuration It is intended to be the primary accessor of DescriptorImpl It is intended to discourage use of the other exported DescriptorImpl methods which are used for updating the chain configuration by the configtx.Manager
type DescriptorImpl ¶
type DescriptorImpl struct {
// contains filtered or unexported fields
}
DescriptorImpl is an implementation of Manager and configtx.ConfigHandler In general, it should only be referenced as an Impl for the configtx.Manager
func NewDescriptorImpl ¶
func NewDescriptorImpl() *DescriptorImpl
NewDescriptorImpl creates a new DescriptorImpl with the given CryptoHelper
func (*DescriptorImpl) AnchorPeers ¶
func (di *DescriptorImpl) AnchorPeers() []*pb.AnchorPeer
AnchorPeers returns the list of valid orderer addresses to connect to to invoke Broadcast/Deliver
func (*DescriptorImpl) BeginConfig ¶
func (di *DescriptorImpl) BeginConfig()
BeginConfig is used to start a new configuration proposal
func (*DescriptorImpl) CommitConfig ¶
func (di *DescriptorImpl) CommitConfig()
CommitConfig is used to commit a new configuration proposal
func (*DescriptorImpl) ProposeConfig ¶
func (di *DescriptorImpl) ProposeConfig(configItem *cb.ConfigurationItem) error
ProposeConfig is used to add new configuration to the configuration proposal
func (*DescriptorImpl) RollbackConfig ¶
func (di *DescriptorImpl) RollbackConfig()
RollbackConfig is used to abandon a new configuration proposal