Brian Tiger Chow
c2c95d1105
start threading context through the system
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-09 07:11:48 -08:00
Juan Batiz-Benet
11df4d5b80
Merge pull request #432 from jbenet/fix/seed
...
fix: seed the random number generator
2014-12-09 02:38:52 -08:00
Juan Batiz-Benet
a9da519715
test/countineyn terminal and error code
2014-12-09 02:24:11 -08:00
Juan Batiz-Benet
dc9f1c4532
net: README.
...
I'm using a Google Drawing to make this diagram.
Turned out pretty well.
2014-12-09 02:12:43 -08:00
Brian Tiger Chow
6780228765
fix: seed the random number generator
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-09 00:06:53 -08:00
Juan Batiz-Benet
04a5dd5164
Merge pull request #431 from jbenet/hotfix/bootstrap-uranus-saturn
...
fix(bootstrap) swap IP addresses of Uranus and Saturn
2014-12-08 23:29:19 -08:00
Brian Tiger Chow
bd685045c8
fix: uranus and saturn IP addresses
...
Mistake: Saturn referred to the NY node and vice versa.
Correction: Fittingly, Uranus is in NY and _S_aturn is _S_ingapore.
I'll have to reboot the testnet to rectify the changes.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 23:19:52 -08:00
Juan Batiz-Benet
d74ea449f6
Merge pull request #428 from jbenet/dht-connected-peers
...
dht find connected peers
2014-12-08 22:05:33 -08:00
Juan Batiz-Benet
26a44fcc06
dht: comment for asyncQueryBuffer
2014-12-08 21:55:51 -08:00
Juan Batiz-Benet
93872a52fc
net/interface: use iota
2014-12-08 21:12:58 -08:00
Juan Batiz-Benet
6040a3efcc
make vendor (datastore fail??)
2014-12-08 20:53:31 -08:00
Juan Batiz-Benet
e0f11dff24
dht: FindPeersConnectedToPeer
2014-12-08 20:52:46 -08:00
Juan Batiz-Benet
d06bb6d826
dht: update to use net.LocalPeer
2014-12-08 20:52:45 -08:00
Juan Batiz-Benet
f15ab8eec3
net: add LocalPeer funcs
2014-12-08 20:52:45 -08:00
Juan Batiz-Benet
ff1e672d5a
dht/pb: changed PeersToPBPeers to set ConnectionType
...
Uses an inet.Dialer
2014-12-08 20:52:45 -08:00
Juan Batiz-Benet
94f04c7fcc
net: add Connectedness var.
2014-12-08 20:52:45 -08:00
Juan Batiz-Benet
26e7656164
dht tests: dont introduce nil multiaddr
...
this is the type of assumption we shouldn't violate.
2014-12-08 20:52:45 -08:00
Juan Batiz-Benet
c5c0e7e8f3
dht: changed msgs, include multiple addrs + conn type
...
See https://github.com/jbenet/go-ipfs/issues/153#issuecomment-63350535
2014-12-08 20:52:34 -08:00
Juan Batiz-Benet
c51b6db012
Merge pull request #429 from jbenet/makefile-all-commits
...
Makefile: add test_all_commits
2014-12-08 20:47:10 -08:00
Juan Batiz-Benet
b0e251bda1
Makefile: add test_all_commits
2014-12-08 20:39:00 -08:00
Juan Batiz-Benet
a1237733c2
dht: linting
2014-12-08 19:28:05 -08:00
Brian Tiger Chow
72dd371809
Merge pull request #425 from jbenet/fix/bootstrap-panic
...
fix(core) bootstrap panic
2014-12-08 18:09:05 -08:00
Brian Tiger Chow
f8a449953b
fix(core) bootstrap panic
...
@jbenet @mappum
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 18:04:41 -08:00
Brian Tiger Chow
5f3ae91f9f
Merge pull request #422 from jbenet/feat/supervise-connections
...
feat(core) supervise bootstrap connections
2014-12-08 16:46:42 -08:00
Brian Tiger Chow
db700839d4
rm logging statement that isn't that useful
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 16:29:33 -08:00
Brian Tiger Chow
df4b54524c
refactor(bootstrap) reduce interface
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 16:29:29 -08:00
Brian Tiger Chow
7b5eff5cef
feat(bootstrap) consider active cxns and connect to subset
...
* only bootstrap if the number of active connections falls below a given threshold
* when bootstrapping, connect to a subset of peers
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 16:29:25 -08:00
Brian Tiger Chow
175da4f584
feat(core) supervise bootstrap connections
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 16:29:20 -08:00
Brian Tiger Chow
80bc9251a6
style(peer) shorter ID when printing Peer
...
feel free to contest/revert if this becomes a problem
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 16:28:31 -08:00
Brian Tiger Chow
b799ddef58
refactor(dht) remove extraneous return value
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 16:28:22 -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
Brian Tiger Chow
5313c1ae22
fix(swarm) Dial panic
...
+/- if len(addresses) is 0, connSetup will be called with nil value for c.
+/- avoid variable reassignment
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 15:07:33 -08:00
Brian Tiger Chow
c67286774c
silence verbose output
...
for higher SnR at IPFS_LOGGING=info
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 15:07:33 -08:00
Brian Tiger Chow
6c419e6af4
style(core) signature
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 15:07:33 -08:00
Brian Tiger Chow
f25893e31a
style(net) rm unused error
...
having an error return value makes the interface a bit confusing to
use. Just ponder... What would an error returned from a predicate
function mean?
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 15:07:33 -08:00
Juan Batiz-Benet
422d342908
Merge pull request #419 from jbenet/refactor/peersafe
...
refactor(peer) some _minor_ safety features
2014-12-08 15:03:38 -08:00
Brian Tiger Chow
74eb03231d
fix(core, peer) helpers to testutil, err handling
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 14:32:52 -08:00
Brian Tiger Chow
c69f6895db
feat(peerstore) add peer to peerstore upon instantiation
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Brian Tiger Chow
d77c4bb5e0
refactor(peer): create peer through peerstore
...
for safety!
use mockpeer.WithID methods to create peers in tests
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Brian Tiger Chow
73a89e161d
refactor(peerstore) s/Get/FindOrCreate
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Brian Tiger Chow
1e007791a5
refactor(peer) impl peerstore with map
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Brian Tiger Chow
3f63e50c54
fix(peer): use error-checking multiaddr method
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 01:10:25 -08:00
Juan Batiz-Benet
9b73003b97
Merge pull request #413 from jbenet/bootstrap++
...
feat(bootstrap!) add saturn, neptune, pluto, uranus
2014-12-07 17:53:54 -08:00
Brian Tiger Chow
af01e0a53c
add names
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-07 17:45:49 -08:00
Brian Tiger Chow
7ea2b2d80e
feat(bootstrap!) add saturn, neptune, pluto, uranus
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-07 17:07:15 -08:00
Juan Batiz-Benet
42d4c79724
Merge pull request #409 from jbenet/no-dupe-send
...
prevent sending of same block to a peer twice
2014-12-07 13:33:51 -08:00
Jeromy
e22ef19d84
log when dupe block is prevented
2014-12-07 21:03:54 +00:00
Jeromy
e4a8a2ed65
same block cant be sent twice to a peer within a certain time period
2014-12-07 20:54:31 +00:00
Jeromy
39162f2cea
prevent sending of same block to a peer twice
2014-12-07 07:54:44 +00:00
Juan Batiz-Benet
6d488bd9f6
Merge pull request #408 from jbenet/update-datastore
...
Updated Datastore, to have a Has.
2014-12-06 16:29:38 -08:00