test

package
v0.0.0-...-3da98e9 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AcceptAllPolicyKey is the key of the AcceptAllPolicy.
	AcceptAllPolicyKey = "AcceptAllPolicy"
)

Variables

This section is empty.

Functions

func ApplicationOrgTemplate

func ApplicationOrgTemplate() configtx.Template

ApplicationOrgTemplate returns the SAMPLE org with MSP template

func CompositeTemplate

func CompositeTemplate() configtx.Template

CompositeTemplate returns the composite template of peer, orderer, and MSP

func MakeGenesisBlock

func MakeGenesisBlock(chainID string) (*cb.Block, error)

MakeGenesisBlock creates a genesis block using the test templates for the given chainID

func MakeGenesisBlockFromMSPs

func MakeGenesisBlockFromMSPs(chainID string, appMSPConf, ordererMSPConf *mspproto.MSPConfig,
	appOrgID, ordererOrgID string) (*cb.Block, error)

MakeGenesisBlockWithMSPs creates a genesis block using the MSPs provided for the given chainID

func OrdererOrgTemplate

func OrdererOrgTemplate() configtx.Template

OrdererOrgTemplate returns the SAMPLE org with MSP template

func OrdererTemplate

func OrdererTemplate() configtx.Template

OrderererTemplate returns the test orderer template

Types

This section is empty.

Jump to

Keyboard shortcuts

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