channelparticipation

package
v1.4.0-rc1.0...-bb6b5b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelListMatcher

func ChannelListMatcher(list ChannelList, expectedChannels []string)

func GenerateJoinRequest

func GenerateJoinRequest(url, channel string, blockBytes []byte) *http.Request

func Join

func Join(n *nwo.Network, o *nwo.Orderer, channel string, block *common.Block, expectedChannelInfo ChannelInfo)

func JoinOrdererAppChannel

func JoinOrdererAppChannel(network *nwo.Network, channelID string, orderer *nwo.Orderer, ordererRunner *ginkgomon.Runner)

JoinOrdererAppChannel Joins an orderer to a channel for which the genesis block was created by the network bootstrap. It assumes a channel with one orderer. It waits for a leader (single orderer, always node=1).

func JoinOrdererJoinPeersAppChannel

func JoinOrdererJoinPeersAppChannel(network *nwo.Network, channelID string, orderer *nwo.Orderer, ordererRunner *ginkgomon.Runner)

JoinOrdererJoinPeersAppChannel Joins an orderer to a channel for which the genesis block was created by the network bootstrap. It assumes a channel with one orderer. It waits for a leader (single orderer, always node=1), and then joins all the peers to the channel.

func JoinOrderersAppChannelCluster

func JoinOrderersAppChannelCluster(network *nwo.Network, channelID string, orderers ...*nwo.Orderer)

JoinOrderersAppChannelCluster Joins a set of orderers to a channel for which the genesis block was created by the network bootstrap. It assumes a channel with one or more orderers (a cluster).

func Remove

func Remove(n *nwo.Network, o *nwo.Orderer, channel string)

Types

type ChannelInfo

type ChannelInfo struct {
	Name              string `json:"name"`
	URL               string `json:"url"`
	Status            string `json:"status"`
	ConsensusRelation string `json:"consensusRelation"`
	Height            uint64 `json:"height"`
}

func ListOne

func ListOne(n *nwo.Network, o *nwo.Orderer, channel string) ChannelInfo

type ChannelInfoShort

type ChannelInfoShort struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

type ChannelList

type ChannelList struct {
	// Deprecated: system channel no longer supported
	SystemChannel *ChannelInfoShort  `json:"systemChannel"`
	Channels      []ChannelInfoShort `json:"channels"`
}

func List

func List(n *nwo.Network, o *nwo.Orderer) ChannelList

Jump to

Keyboard shortcuts

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