fabric: github.com/hyperledger/fabric/orderer/common/server Index | Files | Directories

package server

import "github.com/hyperledger/fabric/orderer/common/server"


Package Files

main.go onboarding.go sched.go server.go signals.go util.go

func Main Uses

func Main()

Main is the entry point of orderer process

func NewServer Uses

func NewServer(
    r *multichannel.Registrar,
    metricsProvider metrics.Provider,
    debug *localconfig.Debug,
    timeWindow time.Duration,
    mutualTLS bool,
    expirationCheckDisabled bool,
) ab.AtomicBroadcastServer

NewServer creates an ab.AtomicBroadcastServer based on the broadcast target and ledger Reader

func ValidateBootstrapBlock Uses

func ValidateBootstrapBlock(block *common.Block, bccsp bccsp.BCCSP) error

ValidateBootstrapBlock returns whether this block can be used as a bootstrap block. A bootstrap block is a block of a system channel, and needs to have a ConsortiumsConfig.

type ChainReplicator Uses

type ChainReplicator interface {
    // ReplicateChains replicates the given chains using the given last system channel config block.
    // It returns the names of the chains that were successfully replicated.
    ReplicateChains(lastConfigBlock *common.Block, chains []string) []string

ChainReplicator replicates chains

type Factory Uses

type Factory interface {
    // GetOrCreate gets an existing ledger (if it exists)
    // or creates it if it does not
    GetOrCreate(chainID string) (blockledger.ReadWriter, error)

    // ChannelIDs returns the channel IDs the Factory is aware of
    ChannelIDs() []string

    // Close releases all resources acquired by the factory

Factory retrieves or creates new ledgers by chainID


mocksCode generated by counterfeiter.

Package server imports 53 packages (graph) and is imported by 7 packages. Updated 2020-02-17. Refresh now. Tools for package owners.