executor

package
v0.0.0-...-667e438 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImpl

func NewImpl(consumer consensus.ExecutionConsumer, rawExecutor PartialStack, stc Coordinator) consensus.Executor

NewCoordinatorImpl creates a new executor.Coordinator

Types

type Coordinator

type Coordinator interface {
	Start() // Start the block transfer go routine
	Stop()  // Stop up the block transfer go routine

	// SyncToTarget attempts to move the state to the given target, returning an error, and whether this target might succeed if attempted at a later time
	SyncToTarget(blockNumber uint64, blockHash []byte, peerIDs []*pb.PeerID) (error, bool)
}

type PartialStack

type PartialStack interface {
	consensus.LegacyExecutor
	GetBlockchainInfo() *pb.BlockchainInfo
}

PartialStack contains the ledger features required by the executor.Coordinator

Jump to

Keyboard shortcuts

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