noops

package
v0.0.0-...-02a123c Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNoops

func GetNoops(c consensus.Stack) consensus.Consenter

GetNoops returns a singleton of NOOPS

Types

type Noops

type Noops struct {
	// contains filtered or unexported fields
}

Noops is a plugin object implementing the consensus.Consenter interface.

func (*Noops) Committed

func (i *Noops) Committed(tag interface{}, target *pb.BlockchainInfo)

Committed is called whenever Commit completes, no-op for noops as it uses the legacy synchronous api

func (*Noops) Executed

func (i *Noops) Executed(tag interface{})

Executed is called whenever Execute completes, no-op for noops as it uses the legacy synchronous api

func (*Noops) RecvMsg

func (i *Noops) RecvMsg(msg *pb.Message, senderHandle *pb.PeerID) error

RecvMsg is called for Message_CHAIN_TRANSACTION and Message_CONSENSUS messages.

func (*Noops) RolledBack

func (i *Noops) RolledBack(tag interface{})

RolledBack is called whenever a Rollback completes, no-op for noops as it uses the legacy synchronous api

func (*Noops) StateUpdated

func (i *Noops) StateUpdated(tag interface{}, target *pb.BlockchainInfo)

StatedUpdates is called when state transfer completes, if target is nil, this indicates a failure and a new target should be supplied, no-op for noops as it uses the legacy synchronous api

Jump to

Keyboard shortcuts

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