blockfile

package
v0.0.0-...-ea48f79 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package blockfile implements a new subcommand (blockfile) for manipulating blockfiles to peer command.

Subcommand

'blockfile' subcommand includes the following subcommands:

verify

Refer detail to the usage which is provided by running 'peer blockfile help'.

Index

Constants

View Source
const (
	EndorserRequired       bool = true
	EndorserNotRequired    bool = false
	OrdererRequired        bool = true
	OrdererNotRequired     bool = false
	PeerDeliverRequired    bool = true
	PeerDeliverNotRequired bool = false
)

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(cmd *cobra.Command)

AddFlags adds flags for create and join

func Cmd

Cmd returns the cobra command for Node

Types

type BlockfileCmdFactory

type BlockfileCmdFactory struct {
	EndorserClient   pb.EndorserClient
	Signer           msp.SigningIdentity
	BroadcastClient  common.BroadcastClient
	DeliverClient    deliverClientIntf
	BroadcastFactory BroadcastClientFactory
}

BlockfileCmdFactory holds the clients used by BlockfileCmdFactory

func InitCmdFactory

func InitCmdFactory(isEndorserRequired, isPeerDeliverRequired, isOrdererRequired bool) (*BlockfileCmdFactory, error)

InitCmdFactory init the BlockfileCmdFactory with clients to endorser and orderer according to params

type BroadcastClientFactory

type BroadcastClientFactory func() (common.BroadcastClient, error)

Jump to

Keyboard shortcuts

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