You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Erik Grinaker 06de7459c9
p2p: use stopCtx when dialing peers in Router (#5983)
4 years ago
..
conn p2p: fix MConnection inbound traffic statistics and rate limiting (#5868) 4 years ago
mock p2p: rename NodeInfo.DefaultNodeID to NodeID 4 years ago
mocks p2p: rename ID to NodeID 4 years ago
pex p2p: resolve PEX addresses in PEX reactor (#5980) 4 years ago
trust use Cleanup(),TempDir() in test cases (#5723) 4 years ago
upnp fix lint failures with 1.31 (#5489) 4 years ago
README.md Fix broken /docs/spec links (#4376) 5 years ago
base_reactor.go docs: warn developers about calling blocking funcs in Receive (#5679) 4 years ago
channel.go p2p: add Router prototype (#5831) 4 years ago
conn_set.go libs: wrap mutexes for build flag with godeadlock (#5126) 5 years ago
errors.go p2p: rename ID to NodeID 4 years ago
key.go evidence: p2p refactor (#5747) 4 years ago
key_test.go evidence: p2p refactor (#5747) 4 years ago
metrics.go p2p: Per channel metrics (#3666) (#3677) 6 years ago
netaddress.go p2p: resolve PEX addresses in PEX reactor (#5980) 4 years ago
netaddress_test.go p2p: Remove data race bug in netaddr stringer (#5048) 5 years ago
node_info.go p2p: rename NodeInfo.DefaultNodeID to NodeID 4 years ago
node_info_test.go p2p: remove `NodeInfo` interface and rename `DefaultNodeInfo` struct (#5799) 4 years ago
peer.go p2p: resolve PEX addresses in PEX reactor (#5980) 4 years ago
peer_set.go p2p: rename ID to NodeID 4 years ago
peer_set_test.go p2p: rename ID to NodeID 4 years ago
peer_test.go p2p: rename PubKeyToID to NodeIDFromPubKey 4 years ago
queue.go p2p: add Router prototype (#5831) 4 years ago
router.go p2p: use stopCtx when dialing peers in Router (#5983) 4 years ago
router_test.go test/p2p: close transports to avoid goroutine leak failures (#5982) 4 years ago
shim.go p2p: revise shim log levels (#5940) 4 years ago
shim_test.go evidence: p2p refactor (#5747) 4 years ago
switch.go p2p: add NodeID.Validate(), replaces validateID() 4 years ago
switch_test.go p2p: rename ID to NodeID 4 years ago
test_util.go p2p: rename NodeInfo.DefaultNodeID to NodeID 4 years ago
transport.go p2p: improve peerStore prototype (#5954) 4 years ago
transport_mconn.go p2p: make PeerManager.DialNext() and EvictNext() block (#5947) 4 years ago
transport_memory.go p2p: improve peerStore prototype (#5954) 4 years ago
transport_memory_test.go p2p: rename ID to NodeID 4 years ago
types.go p2p: tmconn->conn and types->p2p 7 years ago

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