- 09 Apr, 2020 7 commits
-
-
Aarsh Shah authored
-
Aarsh Shah authored
-
Steven Allen authored
fix: remove local provider check
-
Will authored
fix: use the routing table filter
-
Will Scott authored
-
Will Scott authored
-
Steven Allen authored
It doesn't actually work. Blocks are stored under /blocks and have been since 2015. Furthermore, this is just wrong. We shouldn't go digging through the datastore to see if we happen to have the block. If we want something like this, we should include a blockstore in the provider manager.
-
- 08 Apr, 2020 2 commits
-
-
Steven Allen authored
Unfortunately, constructing a router is _not_ cheap. Cache it so we don't have to re-compute it every time we get a query.
-
Steven Allen authored
fixes #575
-
- 07 Apr, 2020 2 commits
-
-
Steven Allen authored
fix: handle empty keys
-
Steven Allen authored
Handle empty keys, both when sent in RPC requests and in the local API.
-
- 06 Apr, 2020 13 commits
-
-
Steven Allen authored
Set record handlers for the default protocol prefix
-
Adin Schmahmann authored
Users can override the pk and ipns default namespaced validators with other validators, however they are of an invalid type then they will fail if using the default /ipfs protocol prefix
-
Adin Schmahmann authored
DHT defaults to adding a namespaced pk and ipns validator unless the Validator has been changed, in which case neither of them are added. Simply adding additional NamespacedValidators does not remove the pk or ipns validators
-
Adin Schmahmann authored
DHT defaults to adding namespaced pk and ipns validators unless the validator defaults are modified in which case neither of them are added
-
Adin Schmahmann authored
-
Adin Schmahmann authored
-
Steven Allen authored
fix incorrect error handling during provider record lookups
-
Adin Schmahmann authored
-
Adin Schmahmann authored
Proposed DHTv2 Changes
-
Adin Schmahmann authored
test: fix TestFindPeerQuery and TestFindPeerQueryMinimal to not try and refresh routing tables for orphaned nodes
-
Steven Allen authored
-
Steven Allen authored
We no longer need this now that we explicitly support v1 compatibility mode.
-
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.
-
- 05 Apr, 2020 2 commits
-
-
Adin Schmahmann authored
-
Adin Schmahmann authored
-
- 03 Apr, 2020 14 commits
-
-
Steven Allen authored
-
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
-
Steven Allen authored
* Remove deprecated events. * Fix warning -> warn. * Use structured logging (some places).
-
Steven Allen authored
Except deprecated warn calls
-
Adin Schmahmann authored
-
Steven Allen authored
-
Adin Schmahmann authored
* record valuable peers algorithm only takes into account latency of seed peers
-
Aarsh Shah authored
* fix Low Peers and Cleanup
-
Adin Schmahmann authored
-
Aarsh Shah authored
* new RT management policy
-
Steven Allen authored
Previously, we'd only return the target peer if we were connected to them. However, this makes it difficult to impossible to find peers that are mostly disconnected from the network. This change also changes `p` to `from` in several places as `p` is _very_ confusing. We should probably switch away from using `p` everywhere.
-
Adin Schmahmann authored
-
Petar Maymounkov authored
* Add Kademlia async lookup implementation (replaces prior implementation) * Add lookup events that allow full lookup reconstruction from logs * Introduce lookup stopping condition, based on parameter "beta" Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
-