73 Commits

Author SHA1 Message Date
Aarsh Shah
00fffba0aa Update dht_bootstrap.go
1) on connecting to a new peer  -> trigger self & bucket bootstrap if RT size goes below thereshold
2) accept formatting & doc suggestions in the review
3) remove RT recovery code for now -> will address in a separate PR once #383 goes in

changes as per review
2019-10-11 14:10:19 +09:00
Aarsh Shah
f4630f62d5 1) seed RT whenever it becomes empty
2) seed RT if empty before starting bootstrap incase 1 hasn't fired
3) pass bootstrap config as option while creating Dht
4) replace all bootstrap function with 1 function
2019-10-11 13:17:36 +09:00
Steven Allen
14545294e3 dep: update go-libp2p-kbucket 2019-10-11 13:14:07 +09:00
Aarsh Shah
f7353aac3b reset timer on bucket 2019-10-11 13:13:53 +09:00
Aarsh Shah
d53dfd6a86 changed bootstrapping logic 2019-10-11 13:13:53 +09:00
Raúl Kripalani
31765355df
migrate to consolidated types. (#344) 2019-05-26 23:33:15 +01:00
Anatoliy Basov
1fe2fd55b9 Get rid of annoying "bootstrap: not found" error (#299)
It's impossible to find the self ID in the DHT because of this statement ac6772539b/handlers.go (L257)
So maybe we should ignore the "not found" error in this case, like we do it for the random walk.
2019-03-14 15:20:56 +11:00
Matt Joiner
07573a0bc4
Log before and after bootstrap sub-queries (#293) 2019-03-12 13:26:54 +11:00
Matt Joiner
08c34b4d83
New node methods for tools and otherwise (#265)
* Add IpfsDHT.{Bootstrap{Random,Self},Peer{Id,Key}}
* Include client mode tests, support for Ping, and uncruft setupDHTs
* Include xerrors in deps
2019-03-06 08:10:38 +11:00
Hector Sanjuan
2b9f6a6a13 gx publish 4.4.30 2019-02-27 05:21:11 +00:00
Hector Sanjuan
d37d69ec4c gx publish 4.4.29 2019-02-26 22:28:19 +00:00
Matt Joiner
61d3de0d41 Fix deadline handling in runBootstrap subqueries 2019-02-15 14:53:03 +11:00
Matt Joiner
f7b176604f Change the bootstrapping subquery log level 2019-02-15 14:53:03 +11:00
vyzo
d422d90de7
Merge pull request #247 from avbasov/patch-1
Fix "no protocol with name dnsaddr" error
2019-02-04 14:35:41 +02:00
Matt Joiner
8b37385468 Rename log to logger 2019-02-03 13:14:35 +11:00
Anatoliy Basov
e7a140b141
Fix "no protocol with name dnsaddr" error 2019-02-01 11:56:56 +02:00
Matt Joiner
2d2bb5513c
Tidy up bootstrapping (#235)
* Remove signal bootstrapping

Remove IpfsDHT.BootstrapOnSignal.

* Type check expected interfaces on IpfsDHT

* Simplify the bootstrap logic

* Tidy up a few other things

* Include BootstrapOnce

* Add comment about duplicating sanity checks

* Use existing import naming convention

* Defer error wrapping until we need it

* Restore existing query count behaviour
2019-01-31 10:06:56 +11:00
Matt Joiner
bebd753a1d
Merge pull request #226 from libp2p/default-bootstrap-peers
Add the full libp2p default bootstrap peer list
2019-01-29 11:00:03 +11:00
Steven Allen
201eea5e0b
Revert "Tidy up bootstrapping" 2019-01-24 14:06:38 -08:00
Matt Joiner
a59df7de13 Use existing import naming convention 2019-01-24 10:05:44 +11:00
Matt Joiner
7da25ec52b Add comment about duplicating sanity checks 2019-01-24 09:59:51 +11:00
Matt Joiner
9055bd6981 Include BootstrapOnce 2019-01-24 09:52:56 +11:00
Matt Joiner
c6e2fde1e3 Tidy up a few other things 2019-01-24 09:52:56 +11:00
Matt Joiner
f423e38edd Simplify the bootstrap logic 2019-01-24 09:52:56 +11:00
Matt Joiner
69392ff66f Remove signal bootstrapping
Remove IpfsDHT.BootstrapOnSignal.
2019-01-24 09:52:55 +11:00
Hector Sanjuan
110dae4320
Revert "Remove signal bootstrapping" 2019-01-23 13:28:20 +01:00
Matt Joiner
a9c746d42b Add the full libp2p default bootstrap peer list 2019-01-23 17:06:07 +11:00
Matt Joiner
b33ea78537 Remove signal bootstrapping
Remove IpfsDHT.BootstrapOnSignal.
2019-01-22 15:47:33 +11:00
Dominic Della Valle
c419fc3497
remove duplicate pkg documentation
Also contained in "dht.go" and prints twice in godoc.
2018-12-26 03:05:36 -05:00
Cole Brown
d4fa80e287 gx publish 4.3.0 2018-07-31 18:19:24 -04:00
Christophe de Carvalho
7c151dadda
typo in dht_bootstrap.go 2018-07-28 15:54:01 +02:00
Cole Brown
9d8818b994 Remember to bootstrap immediately ;_; 2018-07-24 11:41:59 -04:00
Cole Brown
e8d32a56be Simplify bootstrap loop 2018-07-23 18:32:52 -04:00
Cole Brown
a49b5489b9 Use Process.Go() for bootstrap routine 2018-07-02 11:18:47 -04:00
Cole Brown
52d4e6a955 Remove redundant continue 2018-06-29 12:37:55 -04:00
Cole Brown
23ed4e6789 Bootstrap immediately after calls to BootstrapWithConfig 2018-06-29 12:32:09 -04:00
Steven Allen
2832d0325c find self in DHT when bootstrapping
This ensures that our neighbors learn about us so that other peers on the
network *looking* for us can actually find us.

Also:

* Remove dead, racy code.
* Set independent timeouts per bootstrap query.

fixes #147
2018-06-09 08:48:33 -07:00
Lars Gierth
db3b915a17 docs: remove mentions of coral, it's not implemented 2018-03-28 03:44:49 +02:00
vyzo
7a4eb0f079 refactor common woker code for BootstrapWithConfig and BootstrapOnSignal 2016-12-08 19:37:07 +02:00
vyzo
7a658d1e77 fix ticker leak in BootstrapWithConfig 2016-12-08 11:58:06 +02:00
Jeromy
6894f33507 update dependencies after package extraction funtime 2016-10-05 12:34:28 -07:00
Jeromy
e00b3ca0a4 use stdlib context and clean up deps 2016-09-30 10:24:03 -07:00
George Antoniadis
30d43d22e0 Fix dependencies 2016-09-02 20:21:23 +01:00
George Antoniadis
5f3e63aa46 Undo gx rewrites and add gx package.json 2016-08-21 17:18:58 +01:00
Jakub Sztandera
22af8d1151 Update go-log in whole dependency tree (#2898)
* Update golog in go-ipfs

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-secio for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-crypto for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-peer for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Import peersore, it wasn't imported

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update peerstore

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update peer

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update secio

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 09:38:07 -07:00
Jeromy
5f777f323b update libp2p to v3.3.1
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-01 16:45:46 -07:00
Jeromy
26beb1f3d0 update go-libp2p 3.2.2, nil maddr fixes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-17 10:23:10 -07:00
Jeromy
b9f86c8c87 update libp2p with go-multiaddr and go-stream-muxer updates
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-10 16:06:28 -07:00
Lars Gierth
38ff911ada Use extracted go-libp2p-crypto, -secio, -peer packages
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-16 21:48:06 -07:00
Lars Gierth
aa46264d8a Update go-libp2p
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-16 21:23:47 -07:00