460 Commits

Author SHA1 Message Date
fryorcraken.eth
d79984fdba
fix: do not discard messages with no payload
While they do not need to be decoded, they might still be used.
e.g. timestamp, network connectivity, etc.
2022-08-31 14:22:06 +10:00
fryorcraken.eth
482a75fddc
chore: print log when sending relay ping 2022-08-31 13:14:52 +10:00
fryorcraken.eth
f6bb9b2fcd
chore: print content topic in logs 2022-08-31 13:14:07 +10:00
fryorcraken.eth
3053d27b2c
feat: hexToBytes can handle Ethereum address with case checksum 2022-08-29 16:37:05 +10:00
fryorcraken.eth
987eab5f8f
doc: remove warnings 2022-08-25 15:54:05 +10:00
fryorcraken.eth
0d34c44a02
doc: remove no-inherit
It is not needed anymore, Waku Relay doc does ot automatically include
the GossipSub doc.
2022-08-25 15:54:05 +10:00
fryorcraken.eth
9feef9367c
test: go-waku needs --persist-messages to enable store
ref: https://github.com/status-im/go-waku/issues/292
2022-08-25 14:48:58 +10:00
fryorcraken.eth
61701f0086
feat: improve log format for DNS discovery peers 2022-08-25 14:48:58 +10:00
Franck Royer
10c32c84c8
test: add delay for filter un/subscribe 2022-08-25 14:48:57 +10:00
Franck Royer
0564c4f95c
test: Increase timeout
go-waku takes 9s to start, partially because nat cannot be deactivated.
2022-08-25 14:48:57 +10:00
fryorcraken.eth
db22c2e86b
fix: set default value for version if not on the wire 2022-08-24 19:06:53 +10:00
fryorcraken.eth
5eec4564fe
style: typo 2022-08-24 18:43:00 +10:00
fryorcraken.eth
863f8ee7a4
fix: do not use uint8arrays/concat as it returns Buffer in NodeJS
`Buffer` does not have the same behaviour as `Uint8Array` when creating
a `DataView`. This is a problem when manipulating byte for encoding and
decoding purposes.
2022-08-24 18:42:48 +10:00
fryorcraken.eth
79146711c5
fix: ensure the content topics that needs to be decrypted are passed 2022-08-24 17:51:06 +10:00
fryorcraken.eth
5ddca918ca
fix: stop store pagination if response field is missing 2022-08-24 17:34:37 +10:00
fryorcraken.eth
931028e0ac
build: bump ts-node to 10.9.1 and ts-loader to 9.3.1 2022-08-24 15:25:37 +10:00
fryorcraken.eth
280058de4a
test: deep.equal crashes when comparing Buffer and UInt8Array 2022-08-24 12:46:51 +10:00
Franck Royer
cd665a1803
test: pass --store 2022-08-24 07:46:35 +10:00
Franck Royer
953bda781f
test: Ensure pubsub topic is used when sending and retrieving messages 2022-08-24 07:46:35 +10:00
fryorcraken.eth
28f77ec083
fix: use debug instead of console.log 2022-08-17 22:39:42 +10:00
fryorcraken.eth
ecb5b490e3
fix: do not throw on lack of response
Expected proto3 behaviour, just no message returned.
2022-08-17 22:39:19 +10:00
fryorcraken.eth
1c2df434e0
fix(deps): freeze @libp2p/interface-connection 2022-08-16 15:24:11 +10:00
fryorcraken.eth
11e60aadd5
refactor: move predefined nodes out of dns discovery 2022-08-07 12:03:05 +10:00
fryorcraken.eth
8c27975830
fix: outdated doc & links 2022-08-07 12:03:05 +10:00
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
f929be064b
fix: filter import 2022-08-07 12:03:05 +10:00
fryorcraken.eth
080357355b
refactor: extract peer discovery static list 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
95deb6a331
fix: ensure types are available in doc 2022-08-03 09:30:40 +10:00
Franck Royer
98d14e08b0
feat!: Do not start libp2p automatically with createWaku
Reduce the number of actions `createWaku` does.
2022-08-03 09:30:39 +10:00
Franck Royer
e119fc46d6
fix: pass bootstrap to libp2p instance 2022-08-03 09:30:38 +10:00
Franck Royer
8922511cc9
fix: pass pubsub topic when creating waku filter 2022-08-03 09:30:38 +10:00
Franck Royer
275eb72959
fix: ignore store response unspecified error 2022-08-03 09:30:38 +10:00
Franck Royer
d18a5152ef
fix(test): check messages on custom pubsub topic 2022-08-03 09:30:38 +10:00
Franck Royer
4a193e49e0
style: use nullish coalescing instead of if/then 2022-08-03 09:30:38 +10:00
Franck Royer
a3e6850b2f
fix(test): compare peer ids using string format 2022-08-03 09:30:37 +10:00
Franck Royer
991a1cf747
fix(test): ensure nodes are cleaned up, use separate noise key 2022-08-03 09:30:37 +10:00
Franck Royer
ba1c7b86ea
fix: Use libp2p options passed to createWaku 2022-08-03 09:30:37 +10:00
Franck Royer
d7b08f7e24
fix: Wait for remote peer for Waku Relay
The promise resolves only if a remote peer is added to the gossipsub
mesh.
2022-08-03 09:30:37 +10:00
Franck Royer
2265a0099f
refactor: Use same code for store, lightpush and filter 2022-08-03 09:30:37 +10:00
Franck Royer
0a505659b7
fix: ensure node only enable protocol we are testing 2022-08-03 09:30:37 +10:00
Franck Royer
4c3da7bad2
refactor: Use common code for filter and light push 2022-08-03 09:30:36 +10:00
Franck Royer
811685e041
refactor!: Move waitForRemotePeer to own file 2022-08-03 09:30:36 +10:00
Franck Royer
4eeca93d47
chore: bump libp2p to next (0.38.0 rc) 2022-08-03 09:30:36 +10:00
Franck Royer
bd7d01387d
chore: remove useless test 2022-08-03 09:30:36 +10:00
Franck Royer
f768686e51
fix: fix pipe usage 2022-08-03 09:30:33 +10:00
Franck Royer
f3833564f2
fix: Remove event listener once done 2022-07-28 10:43:37 +10:00
Franck Royer
51d5bc19a2
fix: removed usage of buffer in streams 2022-07-20 12:45:14 +10:00
Franck Royer
52616fb912
fix: move to usage of log 2022-07-20 12:44:48 +10:00