Vasco Santos
aa98bc2f0e
chore: address other review comments
2020-12-10 11:50:22 +01:00
Vasco Santos
9966c6ceb2
chore: apply suggestions from code review
...
Co-authored-by: Irakli Gozalishvili <contact@gozala.io>
2020-12-10 11:25:48 +01:00
Vasco Santos
b221e97037
chore: address rest of review
2020-12-09 15:04:49 +01:00
Vasco Santos
1992609f58
chore: add libp2p modules typedef
2020-12-08 15:49:51 +01:00
Vasco Santos
55910c8797
chore: minor changes from lodestar testing
2020-12-03 16:59:56 +01:00
Vasco Santos
d3d6b3566a
chore: fix remaining ts ignores
2020-12-02 21:39:17 +01:00
Vasco Santos
4b309ada54
chore: use new libp2p interface
2020-12-01 22:47:59 +01:00
Vasco Santos
28b9f8562c
chore: add types checker script and more fixes on the jsdocs
2020-11-26 19:23:51 +01:00
Vasco Santos
7e05c4a43b
chore: address review
2020-11-26 19:19:12 +01:00
Vasco Santos
26c40c8dfd
chore: add typedefs
2020-11-26 19:18:54 +01:00
Vasco Santos
7c3f7e074e
feat: discover and connect to closest peers ( #798 )
2020-11-25 18:50:23 +01:00
Vasco Santos
ad6187d1e9
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-11-20 15:16:40 +01:00
Vasco Santos
0d1a34be36
chore: remove noAnnounce from address manager
2020-11-10 09:32:36 +01:00
Vasco Santos
0c551d2714
feat: custom announce filter
2020-11-10 09:32:36 +01:00
Vasco Santos
8456d0e051
chore: store self protocols in protobook ( #760 )
2020-11-09 14:11:48 +01:00
Vasco Santos
e6b0134299
feat: auto relay network query for new relays
2020-11-09 14:11:48 +01:00
Vasco Santos
ee8ee5b49b
chore: use listening events to create self peer record on updates
2020-11-09 14:11:48 +01:00
Vasco Santos
971655ff27
chore: _isStarted is false when stop starts
2020-11-09 14:11:48 +01:00
Vasco Santos
8d75093dcb
chore: auto relay multiaddr update push
2020-11-09 14:11:48 +01:00
Vasco Santos
25488853ef
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-11-09 14:11:48 +01:00
Vasco Santos
093c0ea13f
feat: resolve multiaddrs before dial ( #782 )
2020-11-04 13:54:50 +01:00
Vasco Santos
a1053bdc54
chore: remove outdated events from libp2p js docs ( #766 )
2020-10-07 14:51:51 +02:00
Vasco Santos
96df4b7dc4
chore: update aegir and jsdocs for eslint changes ( #773 )
2020-10-06 14:59:43 +02:00
Vasco Santos
55c9bfac44
feat: gossipsub 1.1 ( #733 )
...
* feat: gossipsub 1.1
BREAKING CHANGE: pubsub implementation is now directly exposed and its API was updated according to the new pubsub interface in js-libp2p-interfaces repo
* chore: use gossipsub branch with src added
* fix: add pubsub handlers adapter
* chore: fix deps
* chore: update pubsub docs and examples
* chore: apply suggestions from code review
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
* chore: use new floodsub
* chore: change validator doc set
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
* chore: add new gossipsub src
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-08-27 15:38:01 +02:00
Vasco Santos
15613ccf19
fix: do not return self on peerstore.peers
2020-08-27 15:38:01 +02:00
Vasco Santos
8a97dded26
feat: create self peer record in identify
2020-08-27 15:38:01 +02:00
Vasco Santos
e50f0eeb7b
feat: exchange signed peer records in identify
2020-08-27 15:38:01 +02:00
Vasco Santos
71daac24b1
chore: refactor and better docs
2020-08-27 15:38:01 +02:00
Vasco Santos
3e5d450eca
feat: signed peer records record manager
2020-08-27 15:38:01 +02:00
Vasco Santos
689f90a698
revert: reapply "fix: throw if no conn encryption module provided ( #665 )"
...
This reapplies commit b621fbdfdc1844343c513ac40d4389e8beee714e.
2020-08-27 15:38:01 +02:00
Alex Potsides
8c56ec0d23
fix: allow certain keychain operations without a password ( #726 )
...
* fix: allow certain keychain operations without a password
Listing, removing, renaming etc keys do not require a password so
the user should not be required to provide one.
This means we don't have to prompt the user to create a password
when they aren't going to do any operations that require a password.
* fix: make keychain pass optional
* fix: support libp2p creation without keychain pass
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-08-05 19:03:11 +02:00
Vasco Santos
2440c872df
fix: ping multiaddr from peer not previously stored in peerstore ( #719 )
2020-07-27 10:53:23 +02:00
Vasco Santos
9ccab40fc8
fix: not dial all known peers in parallel on startup ( #698 )
...
* fix: not dial all known peers on startup
* feat: connection manager should proactively connect to peers from peerStore
* chore: increase bundle size
* fix: do connMgr proactive dial on an interval
* chore: address review
* chore: use retimer reschedule
* chore: address review
* fix: use minConnections in default config
* chore: minPeers to minConnections everywhere
2020-07-14 16:05:26 +02:00
Jacob Heun
5a84dd56d0
fix: pass libp2p to the dht ( #700 )
2020-07-10 17:16:45 +02:00
Jacob Heun
b621fbdfdc
revert: "fix: throw if no conn encryption module provided ( #665 )"
...
This reverts commit c038550fad5b285528d87427fc5fa37ba2b0ba3f.
2020-06-15 12:45:49 +02:00
Vasco Santos
c038550fad
fix: throw if no conn encryption module provided ( #665 )
...
* fix: throw if no conn encryption module provided
* chore: address review
* chore: apply suggestions from code review
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-06-11 12:49:32 +02:00
Vasco Santos
698c1df1b4
feat: support dial only on transport manager to tolerate errors ( #643 )
...
* feat: support dial only on transport manager to tolerate errors
* chore: address review
* chore: add jsdoc to transport manager tolerance errors
2020-05-28 12:37:48 +02:00
Vasco Santos
0fbb59748e
docs: update examples to 0.28.x api ( #625 )
...
* chore: update examples to 0.28 api
* chore: use libp2p-noise in examples
* chore: examples using multiaddrs property of libp2p
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
* docs: update language around secio in crypto example
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-05-28 12:37:48 +02:00
Vasco Santos
0be74e6a61
chore: apply suggestions from code review
...
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-05-28 12:37:48 +02:00
Vasco Santos
6065923356
chore: integrate libp2p-keychain into js-libp2p ( #633 )
...
Integrates the libp2p-keychain codebase into this repo
2020-05-28 12:37:48 +02:00
Vasco Santos
1e3d6f4b56
chore: apply suggestions from code review
...
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
2020-05-28 12:37:48 +02:00
Vasco Santos
48a9a3eecc
refactor: peristent peer-store extended class and disabled by defaul
2020-05-28 12:37:48 +02:00
Vasco Santos
5123a8357b
feat: peerStore persistence
2020-05-28 12:37:48 +02:00
Vasco Santos
aaf62a40ec
fix: libp2p connections getter
2020-05-28 12:37:48 +02:00
Vasco Santos
7fbd1556e8
fix: use libp2p.multiaddrs instead of listen
...
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
2020-05-28 12:37:48 +02:00
Vasco Santos
51474c334a
chore: rename address functions and apply suggestions from code review
...
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
2020-05-28 12:37:48 +02:00
Vasco Santos
2a7967c1cc
feat: address manager
2020-05-28 12:37:48 +02:00
Vasco Santos
d3a4bf0a3f
chore: refactor connection manager and registrar
2020-05-28 12:37:48 +02:00
Vasco Santos
c215339a27
chore: rename peer-store properties
2020-05-28 12:37:48 +02:00
Vasco Santos
cb597b57d7
chore: apply suggestions from code review
...
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
2020-05-28 12:37:48 +02:00