Documentation ¶
Index ¶
- func GetNoops(c consensus.Stack) consensus.Consenter
- type Noops
- func (i *Noops) Committed(tag interface{}, target *pb.BlockchainInfo)
- func (i *Noops) Executed(tag interface{})
- func (i *Noops) RecvMsg(msg *pb.Message, senderHandle *pb.PeerID) error
- func (i *Noops) RolledBack(tag interface{})
- func (i *Noops) StateUpdated(tag interface{}, target *pb.BlockchainInfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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