blocksprovider

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksDeliverer

type BlocksDeliverer interface {
	Recv() (*orderer.DeliverResponse, error)

	Send(*common.Envelope) error
}

type BlocksProvider

type BlocksProvider interface {
	DeliverBlocks()

	UpdateOrderingEndpoints(endpoints []string)

	Stop()
}

func NewBlocksProvider

func NewBlocksProvider(chainID string, client streamClient, gossip GossipServiceAdapter, mcs api.MessageCryptoService) BlocksProvider

type GossipServiceAdapter

type GossipServiceAdapter interface {
	PeersOfChannel(gossipcommon.ChannelID) []discovery.NetworkMember

	AddPayload(chainID string, payload *gossip_proto.Payload) error

	Gossip(msg *gossip_proto.GossipMessage)
}

type LedgerInfo

type LedgerInfo interface {
	LedgerHeight() (uint64, error)
}

Jump to

Keyboard shortcuts

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