- 04 Jan, 2021 3 commits
-
-
Adin Schmahmann authored
dht.msgSender
-
Adin Schmahmann authored
-
Adin Schmahmann authored
refactor: extract messaging components from IpfsDHT into its own struct. create a new struct that manages sending DHT messages that can be used independently from the DHT.
-
- 02 Dec, 2020 1 commit
-
-
Adin Schmahmann authored
reorder startup events so that everything but the refresh manager starts before we add already connected peers to our routing table
-
- 17 Aug, 2020 1 commit
-
-
Adin Schmahmann authored
testing: add test-specific option to force processing of Host address changes even when AutoRefresh is disabled
-
- 19 May, 2020 1 commit
-
-
Aarsh Shah authored
* rt refresh refactor
-
- 14 May, 2020 1 commit
-
-
Aarsh Shah authored
* Bootstrap when RT is empty and optimize allocations. Co-authored-by: Steven Allen <steven@stebalien.com>
-
- 13 May, 2020 1 commit
-
-
decanus authored
-
- 25 Apr, 2020 1 commit
-
-
Steven Allen authored
1. When a peer changes their listening addresses, we need to re-run our routing table filters, possibly removing them. 2. When a peer _starts_ supporting the DHT protocol, we need to add them to our routing table. Previously, we'd only do the inverse.
-
- 08 Apr, 2020 2 commits
-
-
Steven Allen authored
fixes #575
-
Will Scott 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 7 commits
-
-
Steven Allen authored
* Remove deprecated events. * Fix warning -> warn. * Use structured logging (some places).
-
Aarsh Shah authored
* fix Low Peers and Cleanup
-
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.
-
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
* 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>
-