fryorcraken.eth
930c7beaef
refactor: extract peer selection logic
2022-09-14 22:55:03 +10:00
fryorcraken.eth
bdf1c9b7e3
fix: rename to avoid conflict with eponymous TypeScript type
2022-09-14 22:55:03 +10:00
fryorcraken.eth
056aed59fb
refactor: selectRandomPeer doesn't need to be async
2022-09-14 22:55:02 +10:00
fryorcraken.eth
3b05bfe988
refact: getPeersForProtocol only needs the peer store
2022-09-14 22:55:02 +10:00
fryorcraken.eth
b113f3fc25
fix: correct options type to enable passing gossipsub options on create*
2022-09-14 22:24:00 +10:00
fryorcraken.eth
2a355df487
chore: add peer id log
2022-09-13 20:25:40 +10:00
fryorcraken.eth
ff292f37ba
test: fix typing of JSON RPC response
...
Ref: https://github.com/status-im/nwaku/issues/1139
2022-09-11 02:10:59 +10:00
fryorcraken.eth
07007eadb0
fix: do not ignore promise in addPeerToAddressBook
2022-09-11 00:16:07 +10:00
fryorcraken.eth
c9963a4aea
docs: fix links
2022-09-08 18:44:16 +10:00
fryorcraken.eth
91e4d1b435
test: uses full nodes in tests
...
Ref: https://github.com/status-im/nwaku/issues/1085
2022-09-08 18:35:21 +10:00
fryorcraken.eth
9fc16143fa
feat: createLightNode and createPrivacyNode helpers
2022-09-08 18:35:20 +10:00
fryorcraken.eth
f56f6e2e83
feat: define Waku interface
2022-09-08 18:35:20 +10:00
fryorcraken.eth
aee054d9d6
feat: merge gossipsub type in CreateOptions interface
2022-09-08 18:35:20 +10:00
fryorcraken.eth
d97201d6df
style: use log for debug across codebase
2022-09-08 13:18:07 +10:00
fryorcraken.eth
c5e1f50cc8
refactor: remove console.log usage
2022-09-08 13:18:07 +10:00
fryorcraken.eth
3a125dfcbe
doc: add missing modules
2022-09-08 11:12:44 +10:00
fryorcraken.eth
76251c922e
test: make it easier to understand test failure
2022-09-07 12:11:08 +10:00
fryorcraken.eth
e4d4fb1edd
feat: DecryptionParams may be passed when using queryHistory
2022-09-07 12:11:08 +10:00
fryorcraken.eth
f44e13885c
chore: replace todo with issue reference
2022-09-06 12:29:13 +10:00
fryorcraken.eth
ac48792e0e
feat: implement a simple connection management
2022-09-06 12:29:13 +10:00
fryorcraken.eth
b2b14625bb
refactor: remove unused function
2022-09-06 12:29:13 +10:00
fryorcraken.eth
bfeaf6c14e
fix: it-length-prefixed now returns Uint8ArrayList
2022-09-05 15:02:23 +10:00
fryorcraken.eth
4d4c4430f4
refactor: rename proto enum Error to HistoryError
...
As this creates a conflict with the new protons version.
2022-09-05 14:37:54 +10:00
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