Commit Graph

66 Commits

Author SHA1 Message Date
Marten Seemann
53782d439c update to new private network interfaces 2020-03-09 19:39:06 -07:00
Steven Allen
46d26af0b6 feat(graphsync): mount the graphsync libp2p protocol
This won't fetch files from graphsync but will serve them.

fixes #6830
2020-02-26 09:11:15 -08:00
Steven Allen
a53d48059b fix: migrate from deprecated warning function 2020-01-28 21:20:21 -08:00
Steven Allen
98d2fef6ec fix: use pre-defined relays for autorelay
Unfortunately, we don't currently have any way to pick out good relays from bad.
That means we keep searching, trying bad relays, searching some more, trying
_the same relays_, etc. until we randomly find 3 good stable relays. In
practice, this means we just keep searching forever and keep thrashing the DHT.

see https://github.com/libp2p/go-libp2p/issues/694
2020-01-17 06:28:23 -08:00
Adin Schmahmann
3a0d0e817a support async datastores 2019-12-19 00:59:31 -05:00
Steven Allen
8f3b274080 fix: move away from deprecated peer ID functions 2019-12-14 19:48:31 +01:00
Steven Allen
1b7f3a8d51
Merge pull request #6758 from ipfs/feat/ipns-persistent-pubsub
IPNS over PubSub as an Independent Transport
2019-12-13 14:55:56 +01:00
Roman Proskuryakov
7fdcbce1f1 Change Reporter to BandwidthCounter in IpfsNode 2019-12-12 12:42:25 +03:00
Adin Schmahmann
36494e493a ipns(pubsub): utilize persistent pubsub value store 2019-12-11 11:52:05 -05:00
Michael Muré
c3692a5913 extract the pinner to go-ipfs-pinner and dagutils into go-merkledag 2019-12-02 15:45:44 -05:00
Steven Allen
208a340eb1
Merge pull request #6686 from kishansagathiya/fix/typo
Fix typo
2019-09-30 07:27:45 -07:00
Kishan Mohanbhai Sagathiya
f0253dd108 Fix typo 2019-09-28 15:15:41 +05:30
Steven Allen
853ed0be5d chore: fix deprecation warnings 2019-09-26 15:38:12 -07:00
Steven Allen
416195de00 discovery: improve mdns warnings
* Don't warn when connecting to peers.
* Include the peer id when failing to connect to discovered nodes.
2019-09-23 12:17:56 -07:00
Steven Allen
9f1f958432 fix: close peerstore on stop
fixes #6627
2019-09-05 17:20:14 -07:00
Cole Brown
1bcf51e02d Update go-libp2p, fix tests with weak RSA keys 2019-08-23 14:26:20 -07:00
Steven Allen
55afc478ec
Merge pull request #6512 from ipfs/fix/default-gossipsub
make gossipsub the default routing protocol for pubsub
2019-07-18 01:04:58 -07:00
Steven Allen
1a55676bf9 make gossipsub the default routing protocol for pubsub
Pubsub is experimental anyways.
2019-07-15 10:02:42 -07:00
Łukasz Magiera
3f7927f1d8 Update imports to go-filestore 2019-07-15 15:52:34 +02:00
Michael Avila
10de165644
Change to construct provider from go-ipfs-provider 2019-07-03 14:22:55 -07:00
Sander Pick
f2635d1f5e
libp2p: moves discovery after host listen
Prevents the MDNS server from starting when the host has zero addresses.

Re: https://github.com/libp2p/go-libp2p/issues/652

Signed-off-by: Sander Pick <sanderpick@gmail.com>
2019-06-05 20:32:51 -07:00
Hlib
1f1c68f16e Usage of context helper in Blockstore provider 2019-06-04 16:11:27 +03:00
Hlib
4ca2763ee5 Remove Repo from routing provider parameter 2019-06-03 09:51:12 -07:00
Raúl Kripalani
e8c2852179 migrate to go-libp2p-core.
closes #6391

License: MIT
Signed-off-by: Raúl Kripalani <raul@protocol.ai>
2019-05-31 23:23:52 -07:00
Michael Avila
4feff27a89
Group imports correctly 2019-05-29 16:21:09 -07:00
Michael Avila
98df9143ed
Use ProvideEnabled option to construct Bitswap 2019-05-29 16:20:33 -07:00
Michael Avila
992ec291bc
Give argument intent revealing name (and add comment) 2019-05-29 16:20:33 -07:00
Michael Avila
23e1b1db3a
Use conditional for running provider online
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:32 -07:00
Michael Avila
9587723911
Remove strategic provider sys constructors
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:32 -07:00
Michael Avila
0b8f0d3a84
Use interface{} for duplicated return type
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:32 -07:00
Michael Avila
55676a0b86
Remove Ctor from names
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -07:00
Michael Avila
a87558e02c
Move more cfg out of groups
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -07:00
Michael Avila
e8c9207da3
Move cfg out to groups
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -07:00
Michael Avila
6d6ce8fba7
Introduce first strategic provider: do nothing
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -07:00
Steven Allen
1eb701fd75 dep: update go-libp2p
* Write coalescing in yamux and mplex.
* Correctly tag relay streams.
* Reset relay streams instead of closing them. Fixes #6237.
* Trim connections in a background task instead of on-connect.
2019-05-22 11:55:32 -07:00
Steven Allen
2b84b2ba13 chore: fix linter nits and tests that don't compile 2019-05-21 11:09:57 -07:00
Steven Allen
7e7d802557 pubsub: avoid using pubsub defaults from upstream 2019-05-20 13:28:29 -07:00
Łukasz Magiera
3652e0c5f3
core: Use correct default for connmgr lowWater
Most people weren't affected by this as those values are set in config at init, but for others it would be rather hard to debug.
2019-05-20 17:41:16 +02:00
Steven Allen
4924b80e10 chore: fix linter nits
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-14 09:38:26 -07:00
Steven Allen
b57956c5fb core: fix autonat construction
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 15:21:29 -07:00
Łukasz Magiera
e133058487 constructor: break down libp2p logic
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-30 00:09:42 +02:00
Łukasz Magiera
3a12454c95 constructor: libp2p simpleOpts
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-29 23:45:00 +02:00
Łukasz Magiera
ed514b9177 Invert constructor config handling
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-29 23:37:37 +02:00
Łukasz Magiera
9bcf072ccb WIP cleanup config handling in core
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-29 17:43:26 +02:00
requilence
28c0013d5b Fix AutoNAT service for private network
License: MIT
Signed-off-by: Roman Khafizianov <requilence@gmail.com>
2019-04-25 14:06:58 +02:00
Łukasz Magiera
d36b6dbd06 reprovider: use goprocess
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-23 20:26:01 +02:00
Łukasz Magiera
14866308c7 move reprovider out of exchange directory
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-23 20:13:29 +02:00
Łukasz Magiera
c4debb5912 constructor: Add few docstrings
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-23 13:31:01 +02:00
Łukasz Magiera
456084e613 constructor: drop P2P prefix from libp2p related units
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-23 13:30:58 +02:00
Łukasz Magiera
da473d286f constructor: move libp2p related stuff to subpackage
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-23 13:30:25 +02:00