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
Click to show internal directories.
Click to hide internal directories.