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

Struct P2PServer

p2pserver/p2pserver.go:53–64  ·  view source on GitHub ↗

P2PServer control all network activities

Source from the content-addressed store, hash-verified

51
52//P2PServer control all network activities
53type 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
67type ReconnectAddrs struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected