* use increment and decrement operators. * remove unnecessary else branches. * fix package comment with leading space. * fix receiver names. * fix error strings. * remove omittable code. * remove redundant return statement. * Revert changes (code is generated.) * use cfg as receiver name for all config-related types. * use lsi as the receiver name for the LastSignedInfo type. |
||
---|---|---|
.. | ||
conn | ||
dummy | ||
pex | ||
trust | ||
upnp | ||
CHANGELOG.md | ||
README.md | ||
base_reactor.go | ||
errors.go | ||
fuzz.go | ||
key.go | ||
key_test.go | ||
listener.go | ||
listener_test.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 |
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