-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signed address records in the DHT #516
Commits on Mar 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c013668 - Browse repository at this point
Copy the full SHA c013668View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4e94ce - Browse repository at this point
Copy the full SHA c4e94ceView commit details -
fix Search/GetValue to be Kad compliant. Default quorum is now 0 whic…
…h means do not abort the query early
Configuration menu - View commit details
-
Copy full SHA for 68b1169 - Browse repository at this point
Copy the full SHA 68b1169View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cabdf6 - Browse repository at this point
Copy the full SHA 5cabdf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9e21d2 - Browse repository at this point
Copy the full SHA a9e21d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 719a16f - Browse repository at this point
Copy the full SHA 719a16fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 6469073 - Browse repository at this point
Copy the full SHA 6469073View commit details -
Configuration menu - View commit details
-
Copy full SHA for c79bac3 - Browse repository at this point
Copy the full SHA c79bac3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1984feb - Browse repository at this point
Copy the full SHA 1984febView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79648b8 - Browse repository at this point
Copy the full SHA 79648b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ef814a - Browse repository at this point
Copy the full SHA 0ef814aView commit details -
options: KValue and AlphaValue global variables no longer used intern…
…ally. Concurrency option now sets alpha. DisjointPaths option now sets d. Default number of disjoint paths is now bucketSize/2.
Configuration menu - View commit details
-
Copy full SHA for f94a3f2 - Browse repository at this point
Copy the full SHA f94a3f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b25a6c - Browse repository at this point
Copy the full SHA 6b25a6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4f7fda - Browse repository at this point
Copy the full SHA b4f7fdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ef9d77 - Browse repository at this point
Copy the full SHA 8ef9d77View commit details -
Utilize identify events to add peers to the routing table (#472)
* 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>
Configuration menu - View commit details
-
Copy full SHA for 5d313b1 - Browse repository at this point
Copy the full SHA 5d313b1View commit details
Commits on Mar 6, 2020
-
fix: improve context deadline handling
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.
Configuration menu - View commit details
-
Copy full SHA for e505723 - Browse repository at this point
Copy the full SHA e505723View commit details -
Configuration menu - View commit details
-
Copy full SHA for 376300a - Browse repository at this point
Copy the full SHA 376300aView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf4986e - Browse repository at this point
Copy the full SHA bf4986eView commit details -
Enable switching DHT between client and server modes (#469)
* 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
Configuration menu - View commit details
-
Copy full SHA for c24a52f - Browse repository at this point
Copy the full SHA c24a52fView commit details
Commits on Mar 10, 2020
-
feat: move options to main package and make internals private (#486)
* 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.
Configuration menu - View commit details
-
Copy full SHA for d440bbf - Browse repository at this point
Copy the full SHA d440bbfView commit details -
* 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.
Configuration menu - View commit details
-
Copy full SHA for 7ada018 - Browse repository at this point
Copy the full SHA 7ada018View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbb1b36 - Browse repository at this point
Copy the full SHA fbb1b36View commit details
Commits on Mar 13, 2020
-
Cypress Disjoint Query & Query Termination code cleanup (#489)
* kpeerset refactoring * query code cleanup
Configuration menu - View commit details
-
Copy full SHA for e42ee94 - Browse repository at this point
Copy the full SHA e42ee94View commit details
Commits on Mar 16, 2020
-
Configuration menu - View commit details
-
Copy full SHA for f4e0b0d - Browse repository at this point
Copy the full SHA f4e0b0dView commit details
Commits on Mar 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 45c403c - Browse repository at this point
Copy the full SHA 45c403cView commit details -
Merge pull request #495 from libp2p/feat/fix-tests
Fix test logging & document timing issue on Windows
Configuration menu - View commit details
-
Copy full SHA for 7c27400 - Browse repository at this point
Copy the full SHA 7c27400View commit details
Commits on Mar 19, 2020
-
Configuration menu - View commit details
-
Copy full SHA for d7b6b1b - Browse repository at this point
Copy the full SHA d7b6b1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4a6e82 - Browse repository at this point
Copy the full SHA a4a6e82View commit details
Commits on Mar 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c8909e9 - Browse repository at this point
Copy the full SHA c8909e9View commit details
Commits on Mar 23, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 42addc4 - Browse repository at this point
Copy the full SHA 42addc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 075afe8 - Browse repository at this point
Copy the full SHA 075afe8View commit details -
cleanup: documentation and code cleanup for search/getvalue quorum de…
…faulting to zero
Configuration menu - View commit details
-
Copy full SHA for 147dc12 - Browse repository at this point
Copy the full SHA 147dc12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8eade90 - Browse repository at this point
Copy the full SHA 8eade90View commit details
Commits on Mar 24, 2020
-
Merge pull request #497 from libp2p/feat/change-rt-validation
RT peer validation should also include support for the DHT protocol
Configuration menu - View commit details
-
Copy full SHA for e56c237 - Browse repository at this point
Copy the full SHA e56c237View commit details -
* feat(query): fully async implementation of Kademlia lookup. peers returned from the lookup are not guaranteed to be alive (i.e. we're only guaranteed to have dialed the closest beta peers to the target), but given stable and correct routing tables the expectation that most of the peers returned are alive is high. * feat(query): add wrapper lookup followup function to followup after the lookup is completed and ensure that the closest k returned peers from a lookup have been queried even for beta < k * refactor(query) modified the structure returned from lookups to be a useful subset of the full query state instead of the entire query state * feat(options): beta parameter exposed as the Resiliency parameter * feat(routing): do not mark the routing table as updated after a FindPeer query * feat(routing): FindPeer can return addresses even if not Connected as long as it was either recently connected (CanConnect) or was discovered during the lookup * feat(bootstrap): bootstrap logic now uses GetClosestPeers instead of FindPeer * refactor(dht): stopFn no longer takes any state * fix(test): changed GetClosestPeers test to only assume beta instead of k peers since that is now more appropriate given the query logic changes and that the routing tables in that test are bad, i.e. a ring network with arbitrary peerIDs Co-authored-by: Petar Maymounkov <petarm@gmail.com> Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fcbc5f9 - Browse repository at this point
Copy the full SHA fcbc5f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99716d1 - Browse repository at this point
Copy the full SHA 99716d1View commit details
Commits on Mar 27, 2020
-
Configuration menu - View commit details
-
Copy full SHA for e09d7fe - Browse repository at this point
Copy the full SHA e09d7feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d1dcd2 - Browse repository at this point
Copy the full SHA 6d1dcd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5f8c63 - Browse repository at this point
Copy the full SHA b5f8c63View commit details