produceractor

package
v3.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBlock

func AddBlock(block *types.Block)

ApplyBlock is to receive and handle blocks

func BroadCastBlock

func BroadCastBlock(block *types.Block)

BroadCastBlock is to broadcast blocks

func ConsensusProducedBlock

func ConsensusProducedBlock(block *types.Block)

ConsensusProducedBlock is to consensus produced blocks

func GetAllPendingTrx

func GetAllPendingTrx() []*types.Transaction

GetAllPendingTrx is to retrieve the pending transactions

func NewProducerActor

func NewProducerActor(env *env.ActorEnv) *actor.PID

NewProducerActor is to create actor for producer

func SetChainActorPid

func SetChainActorPid(tpid *actor.PID)

SetChainActorPid is to set chain actor PID for use

func SetConsensusActorPid

func SetConsensusActorPid(tpid *actor.PID)

SetConsensusActorPid is to set consensus actor PID for use

func SetNetActorPid

func SetNetActorPid(tpid *actor.PID)

SetNetActorPid is to set net actor pid

func SetTrxPoolActorPid

func SetTrxPoolActorPid(tpid *actor.PID)

SetTrxPoolActorPid is to set transaction actor PID for use

Types

type ProducerActor

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

ProducerActor is to define actor for producer

func (*ProducerActor) Receive

func (p *ProducerActor) Receive(context actor.Context)

Receive is to receive and handle message

Jump to

Keyboard shortcuts

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