Commit Graph

20 Commits

Author SHA1 Message Date
Juan Batiz-Benet
c84a714b16 peer change: peer.Peer -> peer.ID
this is a major refactor of the entire codebase
it changes the monolithic peer.Peer into using
a peer.ID and a peer.Peerstore.

Other changes:
- removed handshake3.
-	testutil vastly simplified peer
-	secio bugfix + debugging logs
-	testutil: RandKeyPair
-	backpressure bugfix: w.o.w.
-	peer: added hex enc/dec
-	peer: added a PeerInfo struct
  PeerInfo is a small struct used to pass around a peer with
 	a set of addresses and keys. This is not meant to be a
 	complete view of the system, but rather to model updates to
 	the peerstore. It is used by things like the routing system.
-	updated peer/queue + peerset
-	latency metrics
-	testutil: use crand for PeerID gen
 	RandPeerID generates random "valid" peer IDs. it does not
 	NEED to generate keys because it is as if we lost the key
 	right away. fine to read some randomness and hash it. to
 	generate proper keys and an ID, use:
 	  sk, pk, _ := testutil.RandKeyPair()
 	  id, _ := peer.IDFromPublicKey(pk)
 	Also added RandPeerIDFatal helper
- removed old spipe
- updated seccat
- core: cleanup initIdentity
- removed old getFromPeerList
2014-12-23 08:33:32 -08:00
Brian Tiger Chow
93fb9fb929 style(logging) demote some statements to Debug (from info)
to improve SnR. Feel free to contest these changes if you find these
statements useful. In my experience, they were adding noise at Info.

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 15:07:33 -08:00
Jeromy
0de12b5d36 implement ipfs id in the new commands library 2014-11-16 16:46:06 -08:00
Jeromy
c62acb2763 copy handshake readme into a doc.go for pretty godoc results 2014-11-08 21:42:37 -08:00
Juan Batiz-Benet
40aea2a934 handshake: log whether new addr observed 2014-11-05 04:05:30 -08:00
Juan Batiz-Benet
4989dcafed swarm + handshake: better observed addr check
The check needed knowledge of the _listen_ addresses,
not just the interface addresses. Also, the handshake now
sends out all the addresses we accumulate about ourselves.
(this may be bad in the long run, but useful now to test)
2014-11-05 04:01:38 -08:00
Juan Batiz-Benet
24f319b549 Merge pull request #268 from jbenet/config-version-init
Initialize Config Version
2014-11-04 19:18:45 -08:00
Juan Batiz-Benet
866c2c8915 updates + config: moved location of current version number 2014-11-04 18:58:15 -08:00
Brian Tiger Chow
98ebe2f3ec hotfix(vendor) 2014-11-04 08:48:27 -08:00
Jeromy
402fdd2db9 changes from PR 2014-11-03 01:45:45 +00:00
Jeromy
2eac5aeec6 begin code for NAT detection 2014-11-02 21:19:22 +00:00
Juan Batiz-Benet
184c25430b go-vet friendly codebase
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
2014-10-25 03:46:39 -07:00
Juan Batiz-Benet
6d8a1d1ecd minimal doc on handshake 2014-10-22 13:10:55 -07:00
Juan Batiz-Benet
88cc1e2a5c spell nit 2014-10-22 12:49:37 -07:00
Juan Batiz-Benet
54032ce38b updated vendoring 2014-10-22 05:29:22 -07:00
Juan Batiz-Benet
701035d5b0 handshake3 (addrs) 2014-10-22 05:25:31 -07:00
Juan Batiz-Benet
97c66ddc8f handshake1 renaming 2014-10-22 04:56:18 -07:00
Henry
0f47b93005 addressed CR by @jbenet 2014-10-16 14:07:20 +02:00
Henry
67e04f0d29 changed message from SemVer to Handshake1 2014-10-16 13:57:45 +02:00
Henry
6f8a89cd8d renamed version pkg to handshake 2014-10-16 13:37:32 +02:00