zjubfd d95894152b fix dirty data in peerset,resolve #3304 (#3359)
* fix dirty data in peerset

startInitPeer before PeerSet add the peer,
once mconnection start and Receive of one
Reactor faild, will try to remove it from PeerSet
while PeerSet still not contain the peer. Fix
this by change the order.

* fix test FilterDuplicate

* fix start/stop race

* fix err
2019-03-02 15:17:37 -05:00
..
2019-01-22 13:23:18 -05:00
2019-01-22 13:23:18 -05:00
2018-07-01 22:36:49 -04:00
2018-07-01 22:36:49 -04:00
2018-12-21 17:37:28 -05:00
2019-01-22 13:23:18 -05:00
2019-01-11 17:41:02 -05:00
2019-01-28 16:13:17 +04:00

p2p

The p2p package provides an abstraction around peer-to-peer communication.

Docs:

  • Connection for details on how connections and multiplexing work
  • Peer for details on peer ID, handshakes, and peer exchange
  • Node for details about different types of nodes and how they should work
  • Pex for details on peer discovery and exchange
  • Config for details on some config option