channel

package
v0.0.0-...-75aeb17 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(channelID string, txFile []byte, mspOpt chaincode.MSPOpt, orderers []chaincode.Endpoint) (*common.Block, error)

Create create channel

func Fetch

func Fetch(mspOpt chaincode.MSPOpt, orderers chaincode.Endpoint, channelID string, blockNum uint64) (*common.Block, error)

Fetch fetch specific block from orderer

func GetChannelInfo

func GetChannelInfo(channelID string, mspOpt chaincode.MSPOpt, peers chaincode.Endpoint) (*common.BlockchainInfo, error)

GetChannelInfo get channel infos

func GetChannels

func GetChannels(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint) ([]*peer.ChannelInfo, error)

GetChannels get all channels from a peer

func Join

func Join(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint, genesisBlock []byte) (*peer.ProposalResponse, error)

Join join a channel

func JoinBySnapshot

func JoinBySnapshot(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint, snapshotPath string) (*peer.ProposalResponse, error)

JoinBySnapshot join channel by snapshot

func JoinBySnapshotStatus

func JoinBySnapshotStatus(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint) (*peer.JoinBySnapshotStatus, error)

JoinBySnapshotStatus get join by snapshot status

func SignConfigTx

func SignConfigTx(channelID string, txFile []byte, mspOpt chaincode.MSPOpt) ([]byte, error)

SignConfigTx sign config tx file to file

func Update

func Update(channelID string, updateConfig []byte, mspOpt chaincode.MSPOpt, orderers []chaincode.Endpoint) error

Update update channel config

Types

This section is empty.

Jump to

Keyboard shortcuts

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