- 06 May, 2020 3 commits
-
-
Steven Allen authored
-
Steven Allen authored
-
Steven Allen authored
-
- 06 Apr, 2020 1 commit
-
-
Steven Allen authored
When this option is passed, the DHT node will listen on and query _only_ using the old DHT protocol. Importantly, the node won't even pretend to be a new DHT node because it's routing table includes V1 peers.
-
- 03 Apr, 2020 9 commits
-
-
Steven Allen authored
The querying node _is_ allowed to reset and go away. fixes https://github.com/libp2p/go-libp2p-kad-dht/issues/431
-
Steven Allen authored
Except deprecated warn calls
-
Aarsh Shah authored
* new RT management policy
-
Aarsh Shah authored
-
Adin Schmahmann authored
* upgraded the protocol id to version 2 (i.e. /kad/2.0.0) and made it so v2 peers running in server mode respond to queries from v1 peers. Note: v2 peers will only send queries using the v2 protocol, will only add v2 peers to their routing tables, and will only tell v1 peers about v2 peers. * to run a forked network we now use network specific protocol prefixes instead of manually setting protocol IDs. Use the ProtocolPrefix option instead of the Protocols option. * emit errors during initialization if the user misuses the default protocol prefix by setting parameters inconsistent with the default protocol's network specification * since the Client option has been deprecated it's been removed from the dht's options. While deprecated it is still available in the dht options package. Setting `Client(false)` now puts the node into ModeAuto.
-
Steven Allen authored
* feat: move options to main package and make internals private Rationale: 1. This allows us to make private options for testing. 2. This removes an import for DHT users. 3. This makes options much easier to discover. 4. This makes it possible to make the config/options internals private. We originally put them in a sub-package to avoid poluting the root namespace, but that isn't really necessary. This keeps the old package (for now) to avoid breaking too much.
-
Adin Schmahmann authored
* created Mode(ModeOpt) option for choosing between auto/client/server modes * Auto mode internally switches the DHT between client and server modes based on the EvtLocalReachabilityChanged event emitted on the event bus (e.g. by AutoNAT) * routing table management of peers that switch between client and server mode while we are connected to them (i.e. are in auto mode) * removed Client(bool) option, becoming a DHT client is specified using Mode(ModeClient) instead
-
Steven Allen authored
1. Continue to best-effort provide, but still return an error when we fail to send provider records to the _best_ peers. 2. Continue returning the best peer's we've found in GetClosestPeers, but also return an error to indicate that we didn't find the closest ones. And fix the hang test.
-
Adin Schmahmann authored
* feat: consume identify events to evaluate routing table addition * fix: routing table no longer gets an update just because new messages have arrived or been sent * fix: add already connected peers into the routing table before listening to events Co-authored-by: Raúl Kripalani <raul.kripalani@gmail.com> Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
-
- 22 Feb, 2020 1 commit
-
-
Steven Allen authored
Related to #453 but not a fix. This will cause us to actually return early when we start blocking on sending to some peers, but it won't really _unblock_ those peers. For that, we need to write with a context.
-
- 05 Nov, 2019 1 commit
-
-
Steven Allen authored
As pointed out by raul, bootstrapping and refreshing are not the same thing. Bootstrapping is the initial setup (i.e., connect to some initial nodes to get started). Refreshing is the process of refreshing the routing table.
-
- 01 Nov, 2019 1 commit
-
-
Aarsh Shah authored
-
- 26 May, 2019 1 commit
-
-
Raúl Kripalani authored
-
- 12 Feb, 2019 2 commits
-
-
Raúl Kripalani authored
This reverts commit 7e68ac3c.
-
Adrian Lanzafame authored
-
- 03 Feb, 2019 1 commit
-
-
Matt Joiner authored
-
- 10 Aug, 2018 3 commits
-
-
Łukasz Magiera authored
-
Łukasz Magiera authored
-
Łukasz Magiera authored
-
- 08 Aug, 2018 1 commit
-
-
Steven Allen authored
fixes #177
-
- 01 Jun, 2018 3 commits
-
-
Erin Swenson-Healey authored
-
Steven Allen authored
Instead of changing the existing constructors, add a new DHT constructor that takes options (and add DHT options).
-
Steven Allen authored
Note: this does mean that the DHT won't work with peer keys by default and that the constructor signature changes. Given all the changes that'll come with the libp2p refactor, I don't feel too bad about this.
-
- 07 Feb, 2018 1 commit
-
-
Dirk McCormick authored
-
- 14 Sep, 2017 1 commit
-
-
Steven Allen authored
Previously, we'd only retry when a write failed (in case the peer was using single-use streams). However, in the new world of half-open streams, writes still succeed on remote-closed streams so this isn't sufficient. Instead, we need to retry on read failure as well. Note: this was technically broken before because a peer could write on a stream before receiving the close message causing the write to succeed but the subsequent read to fail.
-
- 05 Oct, 2016 1 commit
-
-
Jeromy authored
-
- 30 Sep, 2016 3 commits
- 03 Sep, 2016 1 commit
-
-
George Antoniadis authored
-
- 02 Sep, 2016 1 commit
-
-
George Antoniadis authored
-
- 21 Aug, 2016 1 commit
-
-
George Antoniadis authored
-
- 26 Jul, 2016 1 commit
-
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
-
- 04 Jul, 2016 1 commit
-
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
-
- 02 Jul, 2016 1 commit
-
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
-
- 01 Jul, 2016 1 commit
-
-
Jeromy authored
Fixes #2601 Also bump version to 0.4.3-dev License: MIT Signed-off-by: Jeromy <why@ipfs.io>
-