P2PServer control all network activities
| 51 | |
| 52 | //P2PServer control all network activities |
| 53 | type P2PServer struct { |
| 54 | network p2pnet.P2P |
| 55 | msgRouter *utils.MessageRouter |
| 56 | pid *evtActor.PID |
| 57 | blockSync *BlockSyncMgr |
| 58 | ledger *ledger.Ledger |
| 59 | ReconnectAddrs |
| 60 | recentPeers map[uint32][]string |
| 61 | quitSyncRecent chan bool |
| 62 | quitOnline chan bool |
| 63 | quitHeartBeat chan bool |
| 64 | } |
| 65 | |
| 66 | //ReconnectAddrs contain addr need to reconnect |
| 67 | type ReconnectAddrs struct { |
nothing calls this directly
no outgoing calls
no test coverage detected