tendermint/p2p
Dev Ojha dae7dc30e0 Switch usage of math/rand to cmn's rand (#1980)
This commit switches all usage of math/rand to cmn's rand. The only
exceptions are within the random file itself, the tools package, and the
crypto package. In tools you don't want it to lock between the go-routines.
The crypto package doesn't use it so the crypto package have no other
dependencies within tendermint/tendermint for easier portability.

Crypto/rand usage is unadjusted.

Closes #1343
2018-07-16 11:20:37 +04:00
..
conn fix import paths 2018-07-01 22:36:49 -04:00
dummy fix import paths 2018-07-01 22:36:49 -04:00
pex Switch usage of math/rand to cmn's rand (#1980) 2018-07-16 11:20:37 +04:00
trust fix import paths 2018-07-01 22:36:49 -04:00
upnp fix import paths 2018-07-01 22:36:49 -04:00
README.md Revert "delete everything" (includes everything non-go-crypto) 2018-06-20 17:35:30 -07:00
base_reactor.go fix import paths 2018-07-01 22:36:49 -04:00
errors.go Revert "delete everything" (includes everything non-go-crypto) 2018-06-20 17:35:30 -07:00
fuzz.go fix import paths 2018-07-01 22:36:49 -04:00
key.go fix import paths 2018-07-01 22:36:49 -04:00
key_test.go fix import paths 2018-07-01 22:36:49 -04:00
listener.go fixes from review 2018-07-02 12:46:02 -04:00
listener_test.go add test 2018-07-02 13:04:34 -04:00
metrics.go Revert "delete everything" (includes everything non-go-crypto) 2018-06-20 17:35:30 -07:00
netaddress.go fix import paths 2018-07-01 22:36:49 -04:00
netaddress_test.go Revert "delete everything" (includes everything non-go-crypto) 2018-06-20 17:35:30 -07:00
node_info.go fix import paths 2018-07-01 22:36:49 -04:00
peer.go fix import paths 2018-07-01 22:36:49 -04:00
peer_set.go fix nil pointer panic by checking if peer is nil 2018-06-29 16:03:31 +04:00
peer_set_test.go Switch usage of math/rand to cmn's rand (#1980) 2018-07-16 11:20:37 +04:00
peer_test.go fix import paths 2018-07-01 22:36:49 -04:00
switch.go fix import paths 2018-07-01 22:36:49 -04:00
switch_test.go fix import paths 2018-07-01 22:36:49 -04:00
test_util.go fix import paths 2018-07-01 22:36:49 -04:00
types.go Revert "delete everything" (includes everything non-go-crypto) 2018-06-20 17:35:30 -07:00
version.go Revert "delete everything" (includes everything non-go-crypto) 2018-06-20 17:35:30 -07:00
wire.go Revert "delete everything" (includes everything non-go-crypto) 2018-06-20 17:35:30 -07:00

README.md

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