provisional

package
v1.0.0-preview Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConsensusTypeSolo identifies the solo consensus implementation.
	ConsensusTypeSolo = "solo"
	// ConsensusTypeKafka identifies the Kafka-based consensus implementation.
	ConsensusTypeKafka = "kafka"
	// ConsensusTypeSbft identifies the SBFT consensus implementation.
	ConsensusTypeSbft = "sbft"

	// TestChainID is the default value of ChainID. It is used by all testing
	// networks. It it necessary to set and export this variable so that test
	// clients can connect without being rejected for targetting a chain which
	// does not exist.
	TestChainID = "testchainid"

	// AcceptAllPolicyKey is the key of the AcceptAllPolicy.
	AcceptAllPolicyKey = "AcceptAllPolicy"
)

Variables

View Source
var DefaultChainCreationPolicyNames = []string{AcceptAllPolicyKey}

DefaultChainCreationPolicyNames is the default value of ChainCreatorsKey.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	bootstrap.Helper

	// TemplateItems returns a set of configuration items which can be used to initialize a template
	TemplateItems() []*cb.ConfigurationItem
}

Generator can either create an orderer genesis block or configuration template

func New

func New(conf *config.TopLevel) Generator

New returns a new provisional bootstrap helper.

Jump to

Keyboard shortcuts

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