1141 Commits

Author SHA1 Message Date
Adin Schmahmann
5d2e3df37d make all key types loggable 2019-12-19 12:04:25 -05:00
Adin Schmahmann
3e24f352aa provider record keys can be an arbitrary byte array less than 80 bytes instead of only a multihash 2019-12-19 12:00:51 -05:00
Adin Schmahmann
a4b38eebee feat(dht): provider records use multihashes instead of CIDs 2019-12-19 12:00:51 -05:00
Steven Allen
a06b32768e
Merge pull request #432 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-0.5.0
build(deps): bump github.com/libp2p/go-libp2p from 0.4.2 to 0.5.0
2019-12-18 12:38:39 +01:00
dependabot-preview[bot]
23e3b62c28
build(deps): bump github.com/libp2p/go-libp2p from 0.4.2 to 0.5.0
Bumps [github.com/libp2p/go-libp2p](https://github.com/libp2p/go-libp2p) from 0.4.2 to 0.5.0.
- [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.4.2...v0.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-18 11:19:25 +00:00
Steven Allen
4e19da1493
Merge pull request #430 from libp2p/feat/update-bootstrappers
chore(bootstrap): update bootstrappers
2019-12-17 17:21:58 +01:00
Steven Allen
9c060c8363 chore(bootstrap): update bootstrappers
1. Remove bootstrappers with small (1024 bit) keys.
2. Switch from /ipfs to /p2p multiaddrs.

part of https://github.com/libp2p/libp2p/issues/79
2019-12-17 16:53:38 +01:00
dependabot-preview[bot]
17d353f6f6
Merge pull request #423 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-core-0.3.0 2019-12-17 11:58:51 +00:00
dependabot-preview[bot]
2aa9b6f318
build(deps): bump github.com/libp2p/go-libp2p-core from 0.2.5 to 0.3.0
Bumps [github.com/libp2p/go-libp2p-core](https://github.com/libp2p/go-libp2p-core) from 0.2.5 to 0.3.0.
- [Release notes](https://github.com/libp2p/go-libp2p-core/releases)
- [Commits](https://github.com/libp2p/go-libp2p-core/compare/v0.2.5...v0.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-17 11:53:55 +00:00
Steven Allen
904b4cdb5b
Merge pull request #428 from aarshkshah1992/feat/refresh-cpls
Refresh cpl's in dht
2019-12-17 12:50:25 +01:00
Steven Allen
17ab593351
Merge pull request #427 from libp2p/dependabot/go_modules/github.com/ipfs/go-cid-0.0.4
build(deps): bump github.com/ipfs/go-cid from 0.0.3 to 0.0.4
2019-12-17 12:44:15 +01:00
Aarsh Shah
ef6ffec073 refresh cpl in dht 2019-12-17 01:25:57 +08:00
dependabot-preview[bot]
4cb2adfe60
build(deps): bump github.com/ipfs/go-cid from 0.0.3 to 0.0.4
Bumps [github.com/ipfs/go-cid](https://github.com/ipfs/go-cid) from 0.0.3 to 0.0.4.
- [Release notes](https://github.com/ipfs/go-cid/releases)
- [Commits](https://github.com/ipfs/go-cid/compare/v0.0.3...v0.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 11:22:07 +00:00
Steven Allen
dd3d8fbb9d
Merge pull request #425 from libp2p/fix/refresh-wait
fix: always send the result channel when triggering a refresh
v0.4.1
2019-12-13 10:32:02 +01:00
Steven Allen
e512351145 fix: always send the result channel when triggering a refresh
Otherwise, we'll just return a channel that will never be signaled.
2019-12-13 10:11:32 +01:00
Steven Allen
2e6adb8c2b
Merge pull request #400 from libp2p/feat/disable-providers
feat: allow disabling value and provider storage/messages
2019-12-12 18:05:53 +01:00
Steven Allen
c08274fb03
Merge pull request #424 from hacdias/fix/prioritize-closer-peers
fix: prioritize closer peers
2019-12-12 18:00:05 +01:00
Henrique Dias
0449555dde make BaseConnMgrScore const
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-12-12 17:56:30 +01:00
Henrique Dias
e4dae1c931 call it common prefix len
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-12-12 17:55:50 +01:00
Henrique Dias
dca21f6a05 fix: prioritize closer peers
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2019-12-12 17:17:45 +01:00
Steven Allen
a7093c7cb4
Merge pull request #421 from libp2p/chore/update-kbucket
chore(dep): update kbucket
v0.4.0
2019-12-11 19:45:08 +01:00
Steven Allen
6adedd5011 chore(dep): update kbucket
Fixes a bug where we wouldn't be able to perform queries with a sparse but
non-empty routing table.
2019-12-11 19:42:12 +01:00
Steven Allen
323ee8e22c
Merge pull request #420 from libp2p/fix/add-when-empty
fix: try to re-add existing peers when the routing table is empty
2019-12-11 19:20:09 +01:00
Steven Allen
3c3e567143 fix: try to re-add existing peers when the routing table is empty
Otherwise, we could decide to _not_ add a peer, disconnect from most peers, and
be unable to query the DHT even if we're technically connected to a peer in the
DHT.
2019-12-11 18:17:27 +01:00
Steven Allen
85ccd076a8
Merge pull request #419 from libp2p/dependabot/go_modules/github.com/multiformats/go-multiaddr-0.2.0
build(deps): bump github.com/multiformats/go-multiaddr from 0.1.2 to 0.2.0
2019-12-11 14:58:32 +01:00
dependabot-preview[bot]
039825f76d
build(deps): bump github.com/multiformats/go-multiaddr
Bumps [github.com/multiformats/go-multiaddr](https://github.com/multiformats/go-multiaddr) from 0.1.2 to 0.2.0.
- [Release notes](https://github.com/multiformats/go-multiaddr/releases)
- [Commits](https://github.com/multiformats/go-multiaddr/compare/v0.1.2...v0.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-11 11:35:36 +00:00
Steven Allen
6028925020
Merge pull request #418 from libp2p/feat/refresh-and-wait
feat: refresh and wait
v0.3.2
2019-12-10 18:04:36 +01:00
Steven Allen
50a9858ef6 feat(dht): switch to a single RefreshRoutingTable function returning a channel 2019-12-10 17:28:30 +01:00
Steven Allen
0be0cbc50e feat: refresh and wait
We'd like to be able to refresh then _wait_ for the refresh to finish in the testground DHT tests. That way, we can:

1. Start and disable _auto_ refresh.
2. Bootstrap.
3. Refresh a couple of times till we're stable.
4. Wait to _stop_ refreshing.
5. Disconnect from and forget about all peers _not_ in our routing tables.
6. Run the actual tests without interference from the bootstrapping logic.
2019-12-10 15:41:20 +01:00
Steven Allen
5a048eaa57 docs(options): document that DisableValues disables retrieving public keys 2019-12-06 21:44:59 -05:00
Steven Allen
6a005f4687
Merge pull request #414 from libp2p/dependabot/go_modules/go.opencensus.io-0.22.2
build(deps): bump go.opencensus.io from 0.22.1 to 0.22.2
2019-12-06 20:25:32 -05:00
dependabot-preview[bot]
144317432c
build(deps): bump go.opencensus.io from 0.22.1 to 0.22.2
Bumps [go.opencensus.io](https://github.com/census-instrumentation/opencensus-go) from 0.22.1 to 0.22.2.
- [Release notes](https://github.com/census-instrumentation/opencensus-go/releases)
- [Commits](https://github.com/census-instrumentation/opencensus-go/compare/v0.22.1...v0.22.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-07 01:11:50 +00:00
Steven Allen
1320b07966
Merge pull request #412 from libp2p/dependabot/go_modules/github.com/stretchr/testify-1.4.0
build(deps): bump github.com/stretchr/testify from 1.3.0 to 1.4.0
2019-12-06 20:08:34 -05:00
Steven Allen
da497efa3d
Merge pull request #413 from libp2p/dependabot/go_modules/github.com/mr-tron/base58-1.1.3
build(deps): bump github.com/mr-tron/base58 from 1.1.2 to 1.1.3
2019-12-06 17:03:15 -05:00
Steven Allen
5233f33ee9 Merge branch 'ci/go-1.13' 2019-12-06 16:47:32 -05:00
Steven Allen
24833c83b3 ci: bump to go 1.13 2019-12-06 16:31:34 -05:00
Steven Allen
9d48dac160
Merge pull request #415 from libp2p/dependabot/go_modules/github.com/ipfs/go-datastore-0.3.1
build(deps): bump github.com/ipfs/go-datastore from 0.1.1 to 0.3.1
2019-12-06 15:46:45 -05:00
dependabot-preview[bot]
22803380f7
build(deps): bump github.com/ipfs/go-datastore from 0.1.1 to 0.3.1
Bumps [github.com/ipfs/go-datastore](https://github.com/ipfs/go-datastore) from 0.1.1 to 0.3.1.
- [Release notes](https://github.com/ipfs/go-datastore/releases)
- [Commits](https://github.com/ipfs/go-datastore/compare/v0.1.1...v0.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 17:42:53 +00:00
dependabot-preview[bot]
6d0caddb24
build(deps): bump github.com/mr-tron/base58 from 1.1.2 to 1.1.3
Bumps [github.com/mr-tron/base58](https://github.com/mr-tron/base58) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/mr-tron/base58/releases)
- [Commits](https://github.com/mr-tron/base58/compare/v1.1.2...v1.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 17:42:11 +00:00
dependabot-preview[bot]
702557e6e0
build(deps): bump github.com/stretchr/testify from 1.3.0 to 1.4.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.3.0...v1.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 17:41:44 +00:00
Steven Allen
2a39785d3f fix(options): make the disable providers/values options consistent 2019-12-06 09:47:22 -05:00
Steven Allen
ba86f51884 fix: return a closed channel from FindProvidersAsync when providers are disabled. 2019-12-06 09:27:09 -05:00
Steven Allen
c2b72b250d doc(options): document that disabling values/providers should only be done on forked dhts 2019-12-05 19:11:46 -05:00
Steven Allen
52747fc1f0 feat: allow disabling value and provider storage/messages
fixes #274
2019-12-05 19:11:46 -05:00
Steven Allen
a530368fe0
Merge pull request #411 from libp2p/chore/update-deps
chore(dep): update
v0.3.1
2019-12-02 13:13:51 -05:00
Steven Allen
0d48254082 chore(dep): update
Update deps:

* Switch to multiformats/go-base32
* Regenerate protobuf decoding code
2019-12-02 13:05:53 -05:00
Steven Allen
4b7d6fb886
Merge pull request #410 from aarshkshah1992/feat/config-record-maxage
Make max record age configurable
2019-11-14 20:25:44 -08:00
Aarsh Shah
7a39667d70 make max record age configurable 2019-11-15 10:54:09 +08:00
Steven Allen
8ecf9380a4
Merge pull request #405 from libp2p/feat/simplify-bootstrapping
fix and simplify some bootstrapping logic
v0.3.0
2019-11-06 00:36:08 +00:00
Raúl Kripalani
a33b0b97a4 inline struct for RoutingTable config. 2019-11-05 23:55:32 +00:00