MCPcopy Create free account
hub / github.com/DNAProject/DNA / NewP2PActor

Function NewP2PActor

p2pserver/actor/server/actor.go:40–44  ·  view source on GitHub ↗

NewP2PActor creates an actor to handle the messages from txnpool and consensus

(p2pServer *p2pserver.P2PServer)

Source from the content-addressed store, hash-verified

38// NewP2PActor creates an actor to handle the messages from
39// txnpool and consensus
40func NewP2PActor(p2pServer *p2pserver.P2PServer) *P2PActor {
41 return &P2PActor{
42 server: p2pServer,
43 }
44}
45
46//start a actor called net_server
47func (this *P2PActor) Start() (*actor.PID, error) {

Callers 1

TestP2PActorServerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestP2PActorServerFunction · 0.68