Documentation ¶
Index ¶
- Constants
- func AddConsortiumToConfig(channelConfig *cb.Config, request AddConsortiumRequest) (*cb.Config, error)
- func GetChannelProfileConfig(ordService OrdererOrganization, members []PeerOrganization, ...) (*genesisconfig.Profile, error)
- func GetConfigEnvelopeBytes(configUpdate *cb.ConfigUpdate) ([]byte, error)
- func GetProfileConfig(ordOrgs []OrdererOrganization, config GenesisConfig) (*genesisconfig.Profile, error)
- type AddConsortiumRequest
- type ApplicationCapabilities
- type ChannelCapabilities
- type Consortium
- type ConsortiumMember
- type GenesisConfig
- type OrdererCapabilities
- type OrdererNode
- type OrdererOrganization
- type PeerNode
- type PeerOrganization
Constants ¶
View Source
const MB = 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func AddConsortiumToConfig ¶
func GetChannelProfileConfig ¶
func GetChannelProfileConfig( ordService OrdererOrganization, members []PeerOrganization, consortiumName string, adminPolicy string, ) (*genesisconfig.Profile, error)
func GetConfigEnvelopeBytes ¶
func GetConfigEnvelopeBytes(configUpdate *cb.ConfigUpdate) ([]byte, error)
func GetProfileConfig ¶
func GetProfileConfig( ordOrgs []OrdererOrganization, config GenesisConfig, ) (*genesisconfig.Profile, error)
Types ¶
type AddConsortiumRequest ¶
type AddConsortiumRequest struct { Name string Organizations []PeerOrganization }
type ApplicationCapabilities ¶
type ApplicationCapabilities struct {
V2_0 bool
}
type ChannelCapabilities ¶
type ChannelCapabilities struct {
V2_0 bool
}
type Consortium ¶
type Consortium struct { Name string Organizations []*ConsortiumMember }
type ConsortiumMember ¶
type ConsortiumMember struct {
MSPID string
}
type GenesisConfig ¶
type GenesisConfig struct { BatchTimeout time.Duration // 2 seconds MaxMessageCount int // 500 AbsoluteMaxBytes int // 10 * 1024 * 1024 = 10MB PreferredMaxBytes int // 2 * 1024 * 1024 = 2MB OrdererCapabilities OrdererCapabilities ApplicationCapabilities ApplicationCapabilities ChannelCapabilities ChannelCapabilities SnapshotIntervalSize int // 19 TickInterval string // 500ms ElectionTick int // 10 HeartbeatTick int // 1 MaxInflightBlocks int // 5 }
type OrdererCapabilities ¶
type OrdererCapabilities struct {
V2_0 bool
}
type OrdererNode ¶
type OrdererOrganization ¶
type OrdererOrganization struct { Nodes []OrdererNode RootTLSCert string RootSignCert string MspID string }
Click to show internal directories.
Click to hide internal directories.