NagyZoltanPeter
ab8a30d3d6
chore: extended /admin/v1 RESP API with different option to look at current connected/relay/mesh state of the node ( #3382 )
...
* Extended /admin/v1 RESP API with different option to look at current connected/relay/mesh state of the node
* Added score information for peer info retrievals
2025-04-24 08:36:02 +02:00
Ivan FB
75b8838fbf
chore: retrieve protocols in new added peer from discv5 ( #3354 )
...
* add new unit test to validate that any peer can be retrieved
* add new discv5 test and better peer store management
* wakuPeerStore -> switch.peerStore
* simplify waku_peer_store, better logs and peer_manager enhancements
2025-04-07 12:24:03 +02:00
Ivan FB
e2329f97e5
chore: waku_peer_store add clarifying comment to addPeer proc ( #3330 )
2025-03-18 13:03:01 +01:00
Ivan FB
32ba56d77c
chore: refactor filter to react when the remote peer closes the stream ( #3281 )
...
Better control when the remote peer closes the WakuFilterPushCodec
stream.
For example, go-waku closes the stream for every received message.
On the other hand, js-waku keeps the stream opened.
Therefore, we support both scenarios.
2025-02-06 17:21:23 +01:00
Ivan FB
80291abc9a
chore: filter remove all subscription from a peer that is leaving ( #3267 )
...
* waku/waku_filter_v2/protocol.nim keeps track of the filter-client connections in Table[PeerId, Connection]
* waku/waku_filter_v2/protocol.nim starts listening for peer-left events in order to completely remove the previous Connection instance. Also, a new Connection is added when the filter-service starts publishing to its peers.
---------
Co-authored-by: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com>
2025-01-31 17:01:55 +01:00
Ivan FB
ed2e26243f
peer_manager simple cleanup ( #3266 )
2025-01-31 16:34:53 +01:00
Darshan K
dd1a70bdb7
chore: capping mechanism for relay and service connections ( #3184 )
2025-01-21 11:29:52 +05:30
gabrielmer
f301c6d9db
feat: connection change event ( #3225 )
2025-01-08 18:53:00 +01:00
gabrielmer
f3af7fa37e
chore: naming connectPeer procedure ( #3157 )
2024-10-29 18:37:07 +02:00
Ivan FB
8e1b2a60b2
peer_manager: prevent too intense loop when no peers connected ( #3130 )
2024-10-22 20:09:25 +02:00
Simon-Pierre Vivier
6cfa477817
added randomness to peer selection ( #3123 )
2024-10-16 15:18:47 -04:00
gabrielmer
e3de3e9210
chore: adding to libwaku dial and disconnect by peerIds ( #3111 )
2024-10-15 15:32:02 +03:00
Darshan K
c04b560372
refactor: re-arrange function based on responsibility of peer-manager ( #3086 )
2024-10-04 15:23:20 +05:30
gabrielmer
b69d2c3142
fix: out connections leak ( #3077 )
2024-10-03 12:37:22 +03:00
gabrielmer
9e96e1911a
fix: rejecting excess relay connections ( #3065 )
2024-09-27 19:35:18 +03:00
Darshan K
785cf2e9d9
refactor: wrap peer store ( #3051 )
...
Encapsulate peerstore with wakupeerstore
2024-09-27 18:16:46 +05:30
Ivan FB
8c8eea4b67
chore: test peer connection management ( #3049 )
...
* Make some useful consts public, add some utils.
* Implement various utilities.
* peer_manager reconnectPeers enhancements
---------
Co-authored-by: Álex Cabeza Romero <alex93cabeza@gmail.com>
2024-09-24 18:20:29 +02:00
gabrielmer
2a596f4c77
adding a dynamic sleep interval in the connectivity loop ( #3031 )
2024-09-12 22:49:47 +02:00
fryorcraken
723b009b20
chore: use submodule nph in CI to check lint ( #3027 )
2024-09-11 11:51:42 +10:00
gabrielmer
459221f93d
pruning excess in relay connections ( #2965 )
2024-08-12 17:59:11 +02:00
Simon-Pierre Vivier
43e66939b5
fix: add back waku discv5 metrics ( #2927 )
...
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-07-26 16:18:14 -04:00
gabrielmer
53893c1b28
chore: improving logging under debugDiscv5 flag ( #2899 )
2024-07-15 10:55:31 +03:00
gabrielmer
1071ffc6c8
chore: deprecating named sharding ( #2723 )
2024-07-09 18:36:12 +03:00
gabrielmer
c2b49508c2
setting connectivity loop interval to 30 seconds ( #2878 )
2024-07-09 17:33:18 +03:00
Ivan FB
13316201f7
chore: Bump dependencies for v0.31.0 ( #2885 )
...
* bump_dependencies.md: add nim-results dependency
* change imports stew/results to results
* switching to Nim 2.0.8
* waku.nimble: reflect the requirement nim 1.6.0 to 2.0.8
Adding --mm:refc as nim 2.0 enables a new garbage collector that we're
not yet ready to support
* adapt waku code to Nim 2.0
* gcsafe adaptations because Nim 2.0 is more strict
2024-07-09 13:14:28 +02:00
gabrielmer
3e8094a4ef
chore: saving agent and protoVersion in peerStore ( #2860 )
2024-07-01 13:29:14 +02:00
Darshan K
7ad9722ecf
chore: remove all pre-nim-1.6 deadcode from codebase ( #2857 )
2024-06-28 16:04:57 +05:30
gabrielmer
5f8a45c5df
chore: adding discv5 logs ( #2811 )
2024-06-26 14:25:58 +02:00
gabrielmer
42f6b4dcb7
fix: only set disconnect time on left event ( #2831 )
2024-06-24 10:20:09 +02:00
gabrielmer
57ec129a48
stop connecting to out peers until target is reached ( #2823 )
2024-06-20 12:16:15 +02:00
gabrielmer
359f6ff8d5
fix: update peers ENRs in peer store in case they are updated ( #2818 )
2024-06-19 17:29:55 +02:00
Darshan K
88d25755db
fix: mount metadata in wakucanary ( #2793 )
...
* chore: integrate cluster id and shards to waku node.
2024-06-14 18:29:42 +05:30
Darshan K
6250995765
fix: more detailed logs to differentiate shards with peers ( #2794 )
2024-06-10 13:40:18 +05:30
Ivan FB
1afd67994e
chore: waku_discv5, peer_manager - add more logs help debug discovery issues ( #2705 )
2024-05-16 22:30:51 +02:00
Álex Cabeza Romero
9dd59c727e
test(peer-and-connection-management): Implement tests ( #2566 )
...
* Implement peer and connection management tests.
* Fix multiple peers added on initialisation.
* Remove clusterId parameter from newTestWakuNode.
2024-05-13 17:25:44 +02:00
Ivan FB
0adcdb1c85
fix: peer_manager - extend the number of connection requests to known peers ( #2534 )
...
* peer_manager: limit the max num out conns from within the conn loop
2024-03-19 19:07:03 +01:00
Álex Cabeza Romero
279d0dfa7f
fix(2491): Fix metadata protocol disconnecting light nodes ( #2533 )
...
* Fix metadata protocol disconnecting light nodes.
* Implement test cases.
2024-03-19 16:18:52 +01:00
Ivan FB
cf6298ca1f
Generic re-style with nph 0.5.1 ( #2396 )
2024-03-16 00:08:47 +01:00
gabrielmer
92051e95d2
chore: migrating logic from wakunode2.nim to node_factory.nim ( #2504 )
2024-03-08 16:46:42 -06:00
Simon-Pierre Vivier
cfd62e495c
feat: shard aware relay peer management ( #2332 )
...
note that this feature is behind a config flag. `--relay-shard-manager`
2024-01-30 07:28:21 -05:00
Ivan FB
ce567acb62
ip colocation is parameterizable. If set to 0, it is disabled ( #2323 )
...
The "ip colocation" concept refers to the maximum allowed peers
from the same IP address. For example, we allow disabling this limit when the
node works behind a reverse proxy.
2024-01-02 14:01:18 +01:00
Ivan FB
cb59623466
fix: Revert "feat: shard aware peer management ( #2151 )" ( #2312 )
...
This reverts commit dc1d6ce4bf7390e23b73d96634ff87ca9341e129.
We need to revert this commit because
the waku-simulator stopped working. i.e. the nodes couldn't establish
connections among them: 054ba9e33f
Also, the following js-waku test fails due to this commit:
"same cluster, different shard: nodes connect"
* waku_lightpush/protocol.nim: minor changes to make it compile after revert
2023-12-20 15:23:41 +01:00
gabrielmer
29c182195d
fix: setting connectivity loop interval to 15 seconds ( #2307 )
2023-12-20 09:38:14 +01:00
Ivan FB
ac3a3737de
chore: peer_manager.nim - reduce logs from debug to trace ( #2279 )
2023-12-12 16:00:18 +01:00
Simon-Pierre Vivier
c2ded25e11
added sharded peer store pruning ( #2167 )
2023-12-07 07:21:18 -05:00
Simon-Pierre Vivier
dc1d6ce4bf
feat: shard aware peer management ( #2151 )
2023-12-07 06:48:28 -05:00
Simon-Pierre Vivier
6f857b46fe
chore: refactoring peer storage ( #2243 )
2023-11-27 08:08:58 -05:00
Ivan FB
d98363bdd7
peer_manager.nim: better feedback if can't dial peer with WakuMetadataCodec ( #2230 )
2023-11-21 14:54:45 +01:00
Alvaro Revuelta
606757fdbb
feat: add new metadata protocol ( #2062 )
2023-10-11 08:58:45 +02:00
Simon-Pierre Vivier
19af92455a
feat: peer manager can filter select peer by shard ( #2063 )
2023-09-22 15:13:50 -04:00