- 03 Apr, 2020 24 commits
-
-
Aarsh Shah authored
* kpeerset refactoring * query code cleanup
-
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
-
Adin Schmahmann authored
-
Steven Allen authored
-
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>
-
Adin Schmahmann authored
-
Adin Schmahmann authored
-
Adin Schmahmann authored
-
Adin Schmahmann authored
options: KValue and AlphaValue global variables no longer used internally. Concurrency option now sets alpha. DisjointPaths option now sets d. Default number of disjoint paths is now bucketSize/2.
-
Adin Schmahmann authored
-
Adin Schmahmann authored
-
Adin Schmahmann authored
-
Adin Schmahmann authored
-
Adin Schmahmann authored
query switches from alpha mode to k mode if no peers closer than one we have heard about (in a given path) has been found
-
Adin Schmahmann authored
-
Adin Schmahmann authored
-
Adin Schmahmann authored
-
Adin Schmahmann authored
fix Search/GetValue to be Kad compliant. Default quorum is now 0 which means do not abort the query early
-
Adin Schmahmann authored
-
Adin Schmahmann authored
-
- 22 Mar, 2020 3 commits
-
-
Steven Allen authored
chore(ci): switch to go 1.14
-
Steven Allen authored
go 1.14 is now required anyways
-
Steven Allen authored
-
- 20 Mar, 2020 2 commits
-
-
Steven Allen authored
-
Steven Allen authored
build(deps): bump github.com/libp2p/go-libp2p from 0.5.2 to 0.6.1
-
- 19 Mar, 2020 1 commit
-
-
dependabot-preview[bot] authored
Bumps [github.com/libp2p/go-libp2p](https://github.com/libp2p/go-libp2p) from 0.5.2 to 0.6.1. - [Release notes](https://github.com/libp2p/go-libp2p/releases) - [Changelog](https://github.com/libp2p/go-libp2p/blob/master/NEWS.md) - [Commits](https://github.com/libp2p/go-libp2p/compare/v0.5.2...v0.6.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
- 13 Mar, 2020 2 commits
-
-
David Dias authored
* test: augment TestProviderManager test, add notes of future tests * refactor(provider-manager): order funcs, update names for consistency, add code docs
-
David Dias authored
* feat: Expose the ProviderManager through the IpfsDht struct * feat: expose providers prefix so that we do not have to hard code it in other places Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
-
- 10 Mar, 2020 1 commit
-
-
Steven Allen authored
build(deps): bump github.com/ipfs/go-datastore from 0.4.2 to 0.4.4
-
- 05 Mar, 2020 1 commit
-
-
Steven Allen authored
fix: obey the context when sending messages to peers
-
- 04 Mar, 2020 6 commits
-
-
Steven Allen authored
Close context correctly
-
Aarsh Shah authored
-
Steven Allen authored
add benchmark for handleFindPeer
-
Steven Allen authored
give views names again
-
whyrusleeping authored
-
Adrian Lanzafame authored
-