libp2p / go-libp2p-examples

Example libp2p applications
MIT License
339 stars 145 forks source link

Bump github.com/libp2p/go-libp2p-kad-dht from 0.2.1 to 0.3.1 #100

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps github.com/libp2p/go-libp2p-kad-dht from 0.2.1 to 0.3.1.

Release notes *Sourced from [github.com/libp2p/go-libp2p-kad-dht's releases](https://github.com/libp2p/go-libp2p-kad-dht/releases).* > ## v0.3.1 > This is a small patch release to bubble up some updates in dependencies and re-generate the protobuf decoding code. > > ## v0.3.0 > This release introduces some significant improvements (and a few breaking changes) to the logic around refreshing the routing tables (previously known as "bootstrapping"). > > This was previously called "bootstrapping" but bootstrapping and refreshing the routing tables are two separate operations: > * Bootstrapping is the process of connecting to a set of initial nodes to join the DHT. The DHT doesn't currently perform any bootstrapping internally. > * Refreshing is the process of filling out the routing table. > > Behavior Changes: > > * The DHT now automatically starts refreshing the routing table as soon as it's started so there's no need to call `Bootstrap`. > * The DHT will now refresh the routing table as soon as it sees a new peer as long as we have less than 4 peers in the routing table. This helps us quickly re-build the routing table if we disconnect then reconnect to the network. > * The DHT now implements the refreshing algorithm described in the Kademlia paper. This should ensure that the routing table remains full. > > Breaking API Changes: > > * The global NumBootstrapQueries has been removed. The official > * The `BootstrapWithConfig` function has been removed as bootstrapping is now started immediately after constructing the DHT. > * The global `BootstrapConfig` type has been removed along with `BootstrapWithConfig`: > * The config options changed as the old ones didn't make sense given the new algorithm. > * The config options can now be passed in via the constructor using functional arguments. > * `BootstrapSelf` has been removed. This was not an effective way to bootstrap the DHT and all users should just call `Refresh()`. > * `BootstrapRandom` has been removed in favor of `Refresh()`. > * `BootstrapOnce` has been removed in favor of `Refresh()`. > * The global `DefaultBootstrapConfig` has been removed along with the `BootstrapConfig` type. > > Upgrade Notes: > > * You no longer need to call any of the `Bootstrap` methods. If you want force the DHT to fill out its routing table, call `Refresh()`. > * You can now configure routing table refreshing using the following options when constructing the DHT: > * DisableAutoRefresh - Never automatically refresh the routing tables. If you pass this, you'll need to manually invoke `Refresh()` as needed. > * RoutingTableRefreshPeriod - How frequently we should refresh the routing table. > * RoutingTableRefreshQueryTimeout - how long to run each query during the refresh process before timing it out. > > Thanks: I want to give a huge shout-out to a new contributor, [@​aarshkshah1992](https://github.com/aarshkshah1992), for making all these changes happen. > > ## v0.2.2 > * Introduces the [`opts.BucketSize()`](https://godoc.org/github.com/libp2p/go-libp2p-kad-dht/opts#BucketSize) option to make the bucket size configurable.
Commits - [`a530368`](https://github.com/libp2p/go-libp2p-kad-dht/commit/a530368fe04199ee68f106f46e968ebf9b31d694) Merge pull request [#411](https://github-redirect.dependabot.com/libp2p/go-libp2p-kad-dht/issues/411) from libp2p/chore/update-deps - [`0d48254`](https://github.com/libp2p/go-libp2p-kad-dht/commit/0d48254082c1ff49fde16e9d294e9cd88aca2e40) chore(dep): update - [`4b7d6fb`](https://github.com/libp2p/go-libp2p-kad-dht/commit/4b7d6fb886de322dd54d7c597e8ab163e087ad74) Merge pull request [#410](https://github-redirect.dependabot.com/libp2p/go-libp2p-kad-dht/issues/410) from aarshkshah1992/feat/config-record-maxage - [`7a39667`](https://github.com/libp2p/go-libp2p-kad-dht/commit/7a39667d70b289410a6e1f6726307d398bde75d7) make max record age configurable - [`8ecf938`](https://github.com/libp2p/go-libp2p-kad-dht/commit/8ecf9380a4f75200f628339883acdf56c2b85a5a) Merge pull request [#405](https://github-redirect.dependabot.com/libp2p/go-libp2p-kad-dht/issues/405) from libp2p/feat/simplify-bootstrapping - [`a33b0b9`](https://github.com/libp2p/go-libp2p-kad-dht/commit/a33b0b97a4b8aa7978edc3d25835852aea76c3e2) inline struct for RoutingTable config. - [`4bc0480`](https://github.com/libp2p/go-libp2p-kad-dht/commit/4bc0480eded8695fe500b0d5416a38c8bf5560f3) doc(bootstrap): document minRTRefreshThreshold - [`8e9ecdb`](https://github.com/libp2p/go-libp2p-kad-dht/commit/8e9ecdbc98f04ffa414017038b2ebb7392db0070) fix(bootstrap): include the error in the bootstrap failure warning - [`b8eb083`](https://github.com/libp2p/go-libp2p-kad-dht/commit/b8eb083e46d7514ee3ec865166796499a63496f4) chore(bootstrap): rename scanInterval to refreshTicker - [`76f388b`](https://github.com/libp2p/go-libp2p-kad-dht/commit/76f388b6232145fa3258d75fd40243424a4a1a06) chore(bootstrap): reduce indent level - Additional commits viewable in [compare view](https://github.com/libp2p/go-libp2p-kad-dht/compare/v0.2.1...v0.3.1)


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
dependabot-preview[bot] commented 4 years ago

Superseded by #102.