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 |
||
---|---|---|
.. | ||
conn | ||
dummy | ||
pex | ||
trust | ||
upnp | ||
README.md | ||
base_reactor.go | ||
errors.go | ||
fuzz.go | ||
key.go | ||
key_test.go | ||
listener.go | ||
listener_test.go | ||
metrics.go | ||
netaddress.go | ||
netaddress_test.go | ||
node_info.go | ||
peer.go | ||
peer_set.go | ||
peer_set_test.go | ||
peer_test.go | ||
switch.go | ||
switch_test.go | ||
test_util.go | ||
types.go | ||
version.go | ||
wire.go |
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