27 Commits

Author SHA1 Message Date
fryorcraken.eth
889ec4d45c
feat: split bootstrap logic
Split the bootstrap logic in 2 different classes that implement the
libp2p peer discovery class.

This enables better tree shaking when not using the heaviest version
(DNS Discovery).

It also means using libp2p interface directly when customizing the peer
discovery logic.

Finally, the `default` method is still available via the
`defaultBootstrap` option.
2022-08-07 12:03:05 +10:00
fryorcraken.eth
69aee6c1cc
refactor: move createWaku to own module 2022-08-07 12:03:04 +10:00
fryorcraken.eth
8b7a97d502
fix: remove unneeded log 2022-08-03 09:30:41 +10:00
Franck Royer
e119fc46d6
fix: pass bootstrap to libp2p instance 2022-08-03 09:30:38 +10:00
Franck Royer
811685e041
refactor!: Move waitForRemotePeer to own file 2022-08-03 09:30:36 +10:00
Franck Royer
9e27a0082e
Sort out ENR key generation, upgrade to @libp2p/crypto 2022-07-20 12:44:44 +10:00
Franck Royer
8e5318dc4a
Upgrade libp2p-gossipsub 2022-07-20 12:42:24 +10:00
Franck Royer
98c93c8283
Upgrade libp2p, peer-id, multiaddr
Use new packages and fix most compilation errors.
Remaining error to be dealt with in waku.ts.
2022-07-20 12:40:37 +10:00
Franck Royer
6c30e8d400
Use PeerId.toString() instead of toB58String()
New version of `PeerId` will only support `toString`
2022-07-20 11:55:43 +10:00
Franck Royer
b93e535af9
Add wait for remote peer (filter) test 2022-05-27 20:37:15 +10:00
Franck Royer
20b3b5b667
Move common crypto functions to crypto.ts 2022-05-20 10:59:32 +10:00
Franck Royer
aad678a708
Add a timeout to waitForRemotePeer 2022-05-19 16:04:38 +10:00
Franck Royer
d9940f4d9b
Simplify async iterator usage
The iterator will return only once there is a first item available.
Hence, there is no need to add an observer on `change:protocols` event.
2022-05-19 16:04:06 +10:00
Franck
dc90279905
Rename nim-waku to nwaku 2022-04-06 12:39:18 +10:00
Franck R
ed23332965
Allow passing multiaddr to bootstrap.peers (#608) 2022-03-09 18:38:28 +11:00
Franck R
4c80f7f0df
Remove odd prettier config (#500) 2022-02-04 14:12:00 +11:00
Franck R
91d6e436d4
Do not run bootstrap live data test as part of normal CI (#468) 2022-02-03 16:58:53 +11:00
Franck R
69f0005445
Bump libp2p from 0.32.4 to 0.36.2, libp2p-gossipsub from 0.12.1 to 0.13.0 (#470)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 15:12:08 +11:00
Franck R
47c5565371
Wait for heartbeat before considering relay peer ready (#472) 2022-01-31 15:30:49 +11:00
Franck R
03491a892b
Fix waitForRemotePeer & test behaviour (#471) 2022-01-31 10:30:25 +11:00
Franck R
d9248dbc56
Replace waitForConnectedPeer with waitForRemotePeer (#469) 2022-01-30 21:56:21 +11:00
Franck R
f44d700c11
Do not run bootstrap live data test as part of normal CI (#450) 2022-01-27 21:50:27 +11:00
Franck R
e0949dab04
Pass truly async function to getPeers, remove TODO (#428)
* Pass truly async function to `getPeers`

* Confirmed nim-waku's RPC API only returned managed peers
2022-01-24 18:46:06 +11:00
Franck R
34e4cbba73
Use websocket instead of tcp in interop tests (#418) 2022-01-20 13:00:58 +11:00
Franck Royer
284644b822
Fix-up new bootstrap API 2022-01-13 16:39:52 +11:00
Franck Royer
c990660fb9
Rename node only suites 2021-09-24 17:15:46 +10:00
Franck Royer
d900945b6d
Add 'node' in test file names that only run on node 2021-09-24 17:09:34 +10:00