Documentation ¶
Index ¶
- Variables
- func BroadCastBlock(block *types.Block)
- func NewChainActor(env *env.ActorEnv) *actor.PID
- func SetNetActorPid(pid *actor.PID)
- func SetTrxPoolActorPid(tpid *actor.PID)
- type ChainActor
- func (c *ChainActor) HandleNewProducedBlock(ctx actor.Context, req *message.InsertBlockReq)
- func (c *ChainActor) HandleQueryBlockReq(ctx actor.Context, req *message.QueryBlockReq)
- func (c *ChainActor) HandleQueryChainInfoReq(ctx actor.Context, req *message.QueryChainInfoReq)
- func (c *ChainActor) HandleQueryTrxReq(ctx actor.Context, req *message.QueryTrxReq)
- func (c *ChainActor) HandleReceiveBlock(ctx actor.Context, req *message.ReceiveBlock)
- func (c *ChainActor) Receive(context actor.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var ChainActorPid *actor.PID
ChainActorPid is chain actor pid
View Source
var NetActorPid *actor.PID
Functions ¶
func BroadCastBlock ¶
func NewChainActor ¶
NewChainActor spawn a named actor
Types ¶
type ChainActor ¶
type ChainActor struct {
// contains filtered or unexported fields
}
ChainActor is actor props
func (*ChainActor) HandleNewProducedBlock ¶
func (c *ChainActor) HandleNewProducedBlock(ctx actor.Context, req *message.InsertBlockReq)
HandleNewProducedBlock new block msg
func (*ChainActor) HandleQueryBlockReq ¶
func (c *ChainActor) HandleQueryBlockReq(ctx actor.Context, req *message.QueryBlockReq)
HandleQueryBlockReq query block
func (*ChainActor) HandleQueryChainInfoReq ¶
func (c *ChainActor) HandleQueryChainInfoReq(ctx actor.Context, req *message.QueryChainInfoReq)
HandleQueryChainInfoReq query chain info
func (*ChainActor) HandleQueryTrxReq ¶
func (c *ChainActor) HandleQueryTrxReq(ctx actor.Context, req *message.QueryTrxReq)
HandleQueryTrxReq query trx
func (*ChainActor) HandleReceiveBlock ¶
func (c *ChainActor) HandleReceiveBlock(ctx actor.Context, req *message.ReceiveBlock)
HandleReceiveBlock receive block
func (*ChainActor) Receive ¶
func (c *ChainActor) Receive(context actor.Context)
Receive process chain msg
Click to show internal directories.
Click to hide internal directories.