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