Vasco Santos
f5c1cd1fb0
fix: interface-datastore update
2021-03-23 09:39:28 +01:00
Vasco Santos
9504f1951a
fix: connection direction should be only inbound or outbound
2021-03-23 09:39:28 +01:00
TJKoury
f2f361998d
chore: swap promisify to maintained package ( #896 )
...
Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>
2021-03-09 16:55:38 +01:00
Vasco Santos
5f702f3481
fix: conn mgr access to moving averages record object ( #897 )
...
* fix: conn mgr access to moving averages record object
* chore: remove node 12
* chore: add parcel workaround
2021-03-09 16:51:41 +01:00
Vasco Santos
3f314d5e90
fix: transport manager fault tolerance should include tolerance to transport listen fail ( #893 )
2021-02-25 15:23:07 +01:00
Vasco Santos
a34d2bbcc3
fix: routers should only use dht if enabled ( #885 )
2021-02-11 14:37:34 +01:00
Alex Potsides
a36b2112aa
fix: do not add observed address received from peers ( #882 )
2021-02-01 18:32:57 +01:00
Vasco Santos
3e7594f697
fix: peer discovery type in config ( #878 )
...
to any
2021-01-29 14:32:13 +01:00
Alex Potsides
ce2a624a09
fix: unref nat manager retries ( #877 )
...
The retry operation in the NAT Manager can prevent node from shutting
down, so unref the retries so they don't keep adding work to the
event loop.
2021-01-29 14:09:59 +01:00
Vasco Santos
eeda056883
fix: create has optional peer id type ( #875 )
2021-01-28 16:41:04 +01:00
Alex Potsides
0a6bc0d101
feat: add UPnP NAT manager ( #810 )
...
* feat: add uPnP nat manager
Adds a really basic nat manager that attempts to use UPnP to punch
a hole through your router for any IPV4 tcp addresses you have
configured.
Adds any configured addresses to the node's observed addresses list
and adds observed addresses to `libp2p.multiaddrs` so we exchange
them with peers when performing `identify` and people can dial you.
Adds configuration options under `config.nat`
Hole punching is async to not affect start up time.
Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>
2021-01-27 14:55:26 +01:00
Vasco Santos
037c965a67
chore: update deps ( #869 )
2021-01-27 09:45:31 +01:00
Alex Potsides
45c33675a7
fix: store multiaddrs during content and peer routing queries ( #865 )
...
* fix: store provider multiaddrs during find providers
Changes the behaviour of `libp2p.contentRouting.findProviders` to store
the multiaddrs reported by the routers before yielding results to
the caller, so when they try to dial the provider, the multiaddrs are
already in the peer store's address book.
Also dedupes providers reported by routers but keeps all of the addresses
reported, even for duplicates.
Also, also fixes a performance bug where the previous implementation would
wait for any router to completely finish finding providers before sending
any results to the caller. It'll now yield results as they come in which
makes it much, much faster.
2021-01-21 13:41:27 +01:00
Samlior
a28c878f4a
chore: fix close for ConnectionManager ( #861 )
2021-01-21 12:09:53 +01:00
Vasco Santos
6c41e30456
fix: event emitter types with local types ( #864 )
2021-01-18 17:07:30 +01:00
Vasco Santos
01d43a7b60
chore: fix multicodec updates ( #835 )
...
* chore: fix specific multicodec version
* chore: fix multicodec issues
* chore: remove prepare script
2020-12-16 13:56:41 +01:00
Vasco Santos
9ae1b758e9
fix: types from ipfs integration ( #832 )
2020-12-16 13:56:41 +01:00
Vasco Santos
169bb806a7
chore: add typedefs ( #802 )
2020-12-16 13:56:41 +01:00
Vasco Santos
b538ebdc0a
chore: use set-delayed-interval module on circuit ( #809 )
2020-12-16 13:56:41 +01:00
Vasco Santos
baedf3fe5a
feat: discover and connect to closest peers ( #798 )
2020-12-16 13:56:41 +01:00
Vasco Santos
585ad52b4c
feat: custom dialer addr sorter ( #792 )
...
* feat: custom dialer addr sorter
* chore: use libp2p utils sorter via addressBook getMultiaddrsForPeer
* chore: use new libp2p utils
* chore: apply suggestions from code review
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-12-16 13:56:41 +01:00
Vasco Santos
e50c6abcf2
chore: update pubsub ( #801 )
...
BREAKING CHANGE: pubsub signing policy properties were changed according to libp2p-interfaces changes to a single property. The emitSelf option default value was also modified to match the routers value
2020-12-16 13:56:41 +01:00
Vasco Santos
1a13e2c6ca
chore: update address manager readme
2020-12-16 13:56:41 +01:00
Vasco Santos
5758db8ea9
chore: remove noAnnounce from address manager
2020-12-16 13:56:41 +01:00
Vasco Santos
ef9d3ca2c6
feat: custom announce filter
2020-12-16 13:56:41 +01:00
Vasco Santos
97e3633f47
chore: store self protocols in protobook ( #760 )
2020-12-16 13:56:41 +01:00
Vasco Santos
e36b67a212
chore: improve logging for auto relay active listen
2020-12-16 13:56:41 +01:00
Vasco Santos
e977039c8a
chore: sort relay addresses to listen for public first
2020-12-16 13:56:41 +01:00
Vasco Santos
a5337c1797
chore: lint issues fixed
2020-12-16 13:56:41 +01:00
Vasco Santos
ee23fb9508
chore: apply suggestions from code review
...
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-12-16 13:56:41 +01:00
Vasco Santos
11a46ea71e
chore: add configuration docs for auto relay and hop service
2020-12-16 13:56:41 +01:00
Vasco Santos
5c72424e57
chore: address review
2020-12-16 13:56:41 +01:00
Vasco Santos
0bf0b7cf89
feat: auto relay network query for new relays
2020-12-16 13:56:41 +01:00
Vasco Santos
55020056ee
chore: lint issue fixed 0.30
2020-12-16 13:56:41 +01:00
Vasco Santos
bb83cacb5a
chore: address review
2020-12-16 13:56:41 +01:00
Vasco Santos
43eda43f06
chore: create signed peer record on new listen addresses in transport manager
2020-12-16 13:56:41 +01:00
Vasco Santos
7b93ece7f2
chore: use listening events to create self peer record on updates
2020-12-16 13:56:41 +01:00
Vasco Santos
74bdfd1024
chore: _isStarted is false when stop starts
2020-12-16 13:56:41 +01:00
Vasco Santos
4d1fcdb3d2
chore: auto relay multiaddr update push
2020-12-16 13:56:41 +01:00
Vasco Santos
caf66ea143
feat: auto relay ( #723 )
...
* feat: auto relay
* fix: leverage protoBook events to ask relay peers if they support hop
* chore: refactor disconnect
* chore: do not listen on a relayed conn
* chore: tweaks
* chore: improve _listenOnAvailableHopRelays logic
* chore: default value of 1 to maxListeners on auto-relay
2020-12-16 13:56:41 +01:00
Smite Chow
8691465a52
feat: support custom listener options ( #822 )
...
* support custom listener options
* fix get listener options
* add doc to explain custom listener options
* add ut
* fix code style
* Apply suggestions from code review
Co-authored-by: Vasco Santos <vasco.santos@ua.pt>
* add missing comma
Co-authored-by: Vasco Santos <vasco.santos@ua.pt>
2020-12-09 16:31:17 +01:00
Vasco Santos
6350a187c7
fix: dial self ( #826 )
2020-12-09 16:13:25 +01:00
a1300
e9e4b731a5
docs: fix JSDOc for stop and create ( #812 ) ( #813 )
2020-11-27 10:50:35 +01:00
Vasco Santos
d0a9fada32
feat: custom and store self agent version + store self protocol version ( #800 )
...
* feat: custom and store self protocol and agent version
* fix: do not enable custom protocolVersion
2020-11-20 15:14:01 +01:00
Vasco Santos
093c0ea13f
feat: resolve multiaddrs before dial ( #782 )
2020-11-04 13:54:50 +01:00
Jacob Heun
06f26e586f
fix: cleanup open streams on conn close ( #791 )
2020-10-23 15:34:59 +02:00
Jacob Heun
e04224a1e2
fix: catch error in upgrader close call
2020-10-22 14:29:52 +02:00
Jacob Heun
4c6be91588
fix: ensure streams are closed on connection close
2020-10-22 14:29:52 +02:00
Vasco Santos
2fd3b0a0e5
chore: examples not using secio ( #747 )
...
* chore: examples not using secio
* chore(docs): remove unused dep
* chore(docs): remove reference of secio in setup
* chore(docs): replace circuit secio reference with noise
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-10-07 16:16:36 +02:00
Vasco Santos
ec6f7d1cfd
chore: lint issue fixed ( #775 )
2020-10-07 15:39:24 +02:00