Jeromy
ae339a0320
remove dagwriter in favor of new importer function
2014-10-31 05:03:42 +00:00
Juan Batiz-Benet
01a583ea7f
Merge pull request #241 from jbenet/fix/log-debugf
...
fix(everything) log.Debug -> log.Debugf
2014-10-30 17:09:26 -07:00
Jeromy
3270ab0efb
fix bug where terminal would randomly become garbled binary crap
2014-10-30 16:34:52 +00:00
Brian Tiger Chow
cea398b8a7
fix(all) log.Debug -> log.Debugf
2014-10-30 06:35:29 -07:00
Brian Tiger Chow
e0f4000fcf
style(routing) message
2014-10-28 05:12:54 -07:00
Brian Tiger Chow
321eb421e7
refactor(routing) use routing.ErrNotFound
2014-10-28 02:17:46 -07:00
Brian Tiger Chow
f75f4a4b6d
feat(routing) define routing.ErrNotFound
2014-10-28 01:06:28 -07:00
Juan Batiz-Benet
d79ebe68d2
dht ctxcloserify
2014-10-25 21:33:59 -07:00
Juan Batiz-Benet
f2b8803a57
net/service now uses ctxcloser
2014-10-25 21:33:10 -07:00
Jeromy
d92db12460
lots of logging
2014-10-26 00:45:40 +00:00
Jeromy
ab7491f809
logging, logging, and some minor logging
2014-10-25 14:50:22 -07:00
Jeromy
e1f2fe75f8
add in dag removal
2014-10-25 12:39:36 -07:00
Brian Tiger Chow
29457214cb
refactor(dht/pb) move proto to pb package
2014-10-25 04:13:28 -07: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
Jeromy
762faa7421
rewrite findpeer and other dht tweaks
2014-10-24 18:53:36 -07:00
Jeromy
b7744b2a11
fix for #141 , routing table segmentation
2014-10-22 15:08:32 -07:00
Juan Batiz-Benet
a8adf2ff2c
dht test fix (net)
2014-10-22 05:31:49 -07:00
Juan Batiz-Benet
cc5c181ae0
Dialer for dht
...
dht doesn't need the whole network interface, only needs a Dialer.
(much reduced surface of possible errors)
2014-10-22 03:24:05 -07:00
Juan Batiz-Benet
cc9f276f0f
notes
2014-10-22 03:24:05 -07:00
Juan Batiz-Benet
c3df3973e1
query wasnt ensuring conn
...
The query-- once it's actually attempting to connect to a peer--
should be the one connecting.
2014-10-22 03:24:05 -07:00
Juan Batiz-Benet
6f8d23cbc1
this shouldn't connect quite yet.
2014-10-22 03:24:05 -07:00
Jeromy
c070c2f0de
working on debugging dht issues
2014-10-22 03:24:05 -07:00
Juan Batiz-Benet
f7c1ed39e0
renamed datastore.go -> go-datastore
2014-10-21 15:10:58 -07:00
Juan Batiz-Benet
ac62d13e42
peerstore Put -> Add
...
Changed lots of peer use, and changed the peerstore to ensure
there is only ever one peer in use.
Fixed #174
2014-10-20 06:37:12 -07:00
Juan Batiz-Benet
9ca87fbb93
peer.Peer is now an interface
...

2014-10-20 03:26:46 -07:00
Juan Batiz-Benet
b1d11ccfcb
peerstore constructs peers
...
Now, all peers should be retrieved from the Peerstore, which will
construct the peers accordingly. This ensures there's only one peer
object per peer (opposite would be bad: things get out sync)
cc @whyrusleeping
2014-10-20 00:44:44 -07:00
Juan Batiz-Benet
d17292a4c2
differentiate ports cause timing.
2014-10-19 06:29:18 -07:00
Juan Batiz-Benet
4783332b11
fixed tests
2014-10-19 02:05:29 -07:00
Juan Batiz-Benet
c2e649b17c
make vendor
...
@whyrusleeping pre-commit hook?
2014-10-18 20:04:07 -07:00
Juan Batiz-Benet
331e43328e
keyspace XOR naming
2014-10-18 20:01:28 -07:00
Juan Batiz-Benet
20d1d354f3
moved XOR keyspace -> util
2014-10-18 20:01:27 -07:00
Juan Batiz-Benet
e989d6febe
move IDFromPubKey to peer pkg
2014-10-18 04:28:26 -07:00
Juan Batiz-Benet
18cfe02d38
dht tests with context
2014-10-18 04:28:26 -07:00
Jeromy
0b97d29c47
small changes to auxiliary dht functions
2014-10-18 04:28:26 -07:00
Jeromy
60cd0f1cf0
some dht cleanup, and make DHTs take a master context
2014-10-18 04:28:26 -07:00
Jeromy
1a7fac4551
make test fail instead of hang
2014-10-18 04:28:25 -07:00
Jeromy
00516299dd
Add test to test conncurrent connects between two peers
2014-10-18 04:28:25 -07:00
Jeromy
4189d50d77
fix bug in diagnostics, and add more peers to closer peer responses
2014-10-18 04:28:25 -07:00
Jeromy
c77ed6d2aa
fix up FindProvidersAsync
2014-10-18 04:28:25 -07:00
Juan Batiz-Benet
4b5906e466
logging + tweaks
2014-10-18 04:28:24 -07:00
Juan Batiz-Benet
0117fb118d
dht handleAddProviders adds addr in msg
...
Otherwise don't have the peer's target address.
2014-10-18 04:28:24 -07:00
Juan Batiz-Benet
26c4e5004c
handler fixes for tests
2014-10-10 20:48:20 -07:00
Jeromy
da95db3b0c
update dht tests to new network interface
2014-10-10 14:52:59 -07:00
Juan Batiz-Benet
555bc871fc
bugfixes to prev commit
2014-10-09 04:53:02 -07:00
Juan Batiz-Benet
972c0f7b4b
u.DOut -> log.Debug
...
and other logging switches. I kept the u.PErr and u.POut in cli
commands, as those do need to write raw output directly.
2014-10-09 04:50:22 -07:00
Jeromy
1aafd285b5
add in some extra debug logging, and increase routing table latencies
2014-10-08 21:55:50 +00:00
Juan Batiz-Benet
66839fa1de
changed logging, in dht and elsewhere
...
- use log.* instead of u.*
- use automatic type conversions to .String()
(Peer.String() prints nicely, and avoids calling b58 encoding
until needed)
2014-10-07 21:33:59 -07:00
Juan Batiz-Benet
77fccaa2f3
Obviated need for .ID.Pretty() all over the place.
2014-10-06 04:23:55 -07:00
Juan Batiz-Benet
910a76e220
updated multiaddr use across codebase
2014-10-06 04:13:43 -07:00
Jeromy
a0d77dbf99
fixed keyspace tests on 32 bit systems
2014-10-04 19:29:08 +00:00