Commit Graph

863 Commits

Author SHA1 Message Date
Vaclav Pavlin 2f333c1e1c
chore(wakunode2): add ability to specify PX options in wakunode2 (#1157)
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
2024-07-12 10:09:04 +05:30
Prem Chaitanya Prathi bb74e39ed9
feat: support for lightpush to use more than 1 peer (#1158) 2024-07-12 09:28:23 +05:30
richΛrd 9412af28dd
refactor: ping a subset of connected peers (#1148) 2024-07-11 12:02:52 -04:00
richΛrd 3b0c8e9207
chore: bump go-libp2p (#1155) 2024-07-11 11:26:04 -04:00
Prem Chaitanya Prathi 221cbf6599
fix: for light node do not check for matching shards but only clusterID (#1154) 2024-07-09 18:50:44 +05:30
richΛrd 7c13021a32
feat: use mesh peers instead of all peers for determining topic health (#1150) 2024-07-03 16:35:39 -04:00
Prem Chaitanya Prathi 5b5ea977af
feat: optimize filter subs (#1144)
Co-authored-by: richΛrd <info@richardramos.me>
2024-07-01 19:48:00 +05:30
richΛrd e3d7ab1d58
fix: panic due to enr having more than 300 bytes (#1140) 2024-07-01 09:47:38 -04:00
richΛrd 201d434d50
fix: ignore ws from circuit relay addresses, and allow non multiaddresses in `multiaddrs` ENR key (#1141) 2024-07-01 09:03:34 -04:00
richΛrd 8d7c2f7bfa
feat: filter peers stored in cache by cluster-id in peer-exchange (#1139) 2024-06-27 10:02:01 -04:00
Prem Chaitanya Prathi 19a47a1ac1
feat: modify peer-manager to consider relay target peers (#1135) 2024-06-26 06:18:44 +05:30
richΛrd ee33baa283
feat: online checker (#1125) 2024-06-25 11:28:04 -04:00
richΛrd 8303c592d3
fix: use IP addresses instead of dns to store multiaddresses (#1134)
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
2024-06-20 13:22:43 +05:30
richΛrd 93331b483e
fix: do not write tcp port 0 and remove 100 chars length limit for multiaddresses (#1129) 2024-06-20 12:50:15 +05:30
Prem Chaitanya Prathi 795322a196
fix: filter out peers to be considered for circuit-relay (#1130)
Co-authored-by: Richard Ramos <info@richardramos.me>
2024-06-18 21:19:23 +05:30
Prem Chaitanya Prathi a06208321e
fix: add peer addresses on expiry if peer is discovered again (#1128) 2024-06-18 08:06:16 +05:30
Prem Chaitanya Prathi b3b8f709a5
chore: modifying defaults for filter serviceNode (#1126) 2024-06-17 11:10:09 +05:30
Prem Chaitanya Prathi 32da07cad9
fix: filter sub issues (#1123) 2024-06-12 18:33:57 +05:30
Prem Chaitanya Prathi 389b359e43
fix: panic due to closed channel and other fixes(#1115) 2024-06-07 15:35:04 +05:30
richΛrd d2d2f5672e
chore: reduce peer score not found log noise (#1121) 2024-06-05 15:03:33 -04:00
richΛrd 0e223591ed
chore: allow setting custom logger name and change debug level to storeV3 client (#1118) 2024-06-05 11:56:26 -04:00
Richard Ramos ad1b0948e3
fix(storev3): cursor 2024-06-05 11:42:27 -04:00
richΛrd 349754056d
chore: upgrade to go1.21 (#1091) 2024-06-04 18:46:28 -04:00
Prem Chaitanya Prathi 269417c5e9
fix: crash noticed while adding existing peer that doesn't have an ENR (#1113) 2024-05-28 18:20:47 +05:30
Prem Chaitanya Prathi 8115ec7013
feat: changes for optimizing filter ping and improve filter resubscription (#1102) 2024-05-22 11:45:53 +05:30
Richard Ramos 05d247d272
fix(store): simplify cursor 2024-05-16 18:55:12 -04:00
Vaclav Pavlin 879bc08426
fix(lightpush): return non-empty reqId and add LP opts to builder (#1103) 2024-05-16 18:06:39 -04:00
Richard Ramos 07d9fc9770
fix(storev3): iterator 2024-05-16 18:05:16 -04:00
Vit∀ly Vlasov 6e47bd1cf0
feat: filter subscription management and multiplexing (#1048)
Filter wrapper API that takes care of managing subscriptions and multiplex them onto a single data channel to be consumed by user. 

Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
2024-05-15 13:03:59 +05:30
richΛrd 7028a0b1cb
feat(REST): storev3 client (#1100) 2024-05-14 09:06:11 -04:00
richΛrd e8dc887c6f
fix(peer-manager): use backoff only on connection errors (#1089) 2024-05-13 15:07:08 -04:00
richΛrd bc16421c74
feat: ping cache (#999) 2024-05-13 14:56:34 -04:00
richΛrd febeb6c9c9
feat: add pubsub topic to `WakuMessageKeyValue` (#1097) 2024-05-09 15:09:14 -04:00
richΛrd 19d27befd9
chore: set go-ethereum back to v1.10.26 (#1096) 2024-05-07 13:56:26 -04:00
Roman Zajic a453c027b7
chore: sharding tests update (#1060)
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
Co-authored-by: richΛrd <info@richardramos.me>
2024-05-04 09:26:18 +08:00
richΛrd 28c2a2704a
feat: storeV3 client (#1028) 2024-05-03 12:07:03 -04:00
frank 46e48044da
fix: watchMultiaddressChanges (#1093) 2024-04-18 19:21:31 +08:00
richΛrd ea3f9d8d9d
fix(rest/store): allow local queries (#1088) 2024-04-17 08:54:17 -04:00
frank 67bbbaf60d
fix: logout discover dead lock (#1090) 2024-04-16 21:02:52 +08:00
richΛrd 46b4efec56
fix: validate lightpush requests (#1082) 2024-04-15 09:36:18 -04:00
richΛrd 714a310462
fix(lightpush): no response on err (#1083) 2024-04-15 08:56:03 -04:00
richΛrd 0260cfe954
fix(peer-manager): discovering peers should not lock the peer manager (#1084) 2024-04-15 08:33:23 -04:00
richΛrd 3f69fb3776
fix: remove max number of shards verif (#1081) 2024-04-08 06:21:43 -04:00
Roman Zajic 83efe65f01
chore: discv5 tests coverage improvement (#1051) 2024-03-26 08:16:49 +08:00
richΛrd dcd802c027
chore: update go-discover (#1066) 2024-03-25 15:12:59 -04:00
richΛrd 327391a9b4
fix: handle discv5 udp port 0 (#1069) 2024-03-25 14:11:41 -04:00
Prem Chaitanya Prathi 6f1280e704
fix: data race reported in #1070 (#1072) 2024-03-25 21:03:21 +05:30
Anton Iakimov 826c7fb924
chore: switch wakuv2 fleet to waku 2024-03-20 11:38:48 +01:00
Roman Zajic 7d767c0105
fix: service slot test failure - regression (#1062) 2024-03-20 12:11:06 +08:00
Roman Zajic afa124e1ca
fix: service slot tests (#1058) 2024-03-18 20:12:36 +08:00
Roman Zajic 4b9e3635a2
chore: peermanager tests coverage improvement (#1035) 2024-03-18 16:22:20 +08:00
richΛrd 3074cdb11c
fix: verify if metadata exists before checking for shard mismatch (#1056) 2024-03-16 06:18:10 +05:30
richΛrd bdf44c0a23
fix(metadata): only verify peer metadata on relay (#1052) 2024-03-14 10:21:47 -04:00
richΛrd 32be835b5e
chore(metadata): handle deprecated shards field (#1050) 2024-03-12 08:14:25 -04:00
Roman Zajic bdf10a46e4
chore: peer exchange tests coverage improvement (#1046) 2024-03-11 21:33:54 +08:00
richΛrd 4d828bdf70
feat(peer-exchange): rate limit (#1043)
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
2024-03-11 09:58:14 +05:30
richΛrd 0ba0f1fe26
refactor: use ttl of 5m for subscriptions (#1041) 2024-02-22 10:52:00 -04:00
richΛrd 0bdd3590f7
chore: add artificial delay to peer-exchange (#1038) 2024-02-21 10:11:48 -04:00
richΛrd d65a836bb6
chore: drop legacy filter support (#1037) 2024-02-20 08:47:37 -04:00
Prem Chaitanya Prathi 4f232c40ca
feat: topic health reporting (#1027)
Co-authored-by: richΛrd <info@richardramos.me>
2024-02-08 15:24:58 +05:30
richΛrd c09bd8383b
chore: add rate limiter option to lightpush (#1024) 2024-02-05 08:53:15 -04:00
Prem Chaitanya Prathi 2e7a82e130
feat: peer exchange filter by shard (#1026) 2024-02-02 18:47:09 +05:30
Prem Chaitanya Prathi b647314846
chore: add logs for peer connection backoff (#1018) 2024-01-30 17:20:35 +05:30
Prem Chaitanya Prathi 0f00fb8d96
fix: update lastProcessedBlock even if no RLN membership event is present (#1013) 2024-01-26 15:38:37 +05:30
Prem Chaitanya Prathi 3be0edbf14
feat: support multiple peer selection for filter client (#1005) 2024-01-26 14:15:15 +05:30
Prem Chaitanya Prathi 5fdd0da9ee
chore: set log level for all loggers based on logger passed (#1011) 2024-01-25 19:39:49 +05:30
Roman Zajic 190d8e8e08
chore: RLN tests coverage improvement for node gm (#1009) 2024-01-21 11:55:27 +08:00
frank 0723ff9282
feat: Enable immediate dial termination by reusing passed context in GetResolver (#1006) 2024-01-15 20:12:02 +05:30
Prem Chaitanya Prathi faf046e059
chore: bumped libp2p and pubsub to 0.32.2 and 0.10 respectively (#987)
Co-authored-by: Richard Ramos <info@richardramos.me>
2024-01-12 13:40:27 -04:00
Roman Zajic 75f975ce7a
chore: RLN tests coverage improvement (#1003) 2024-01-11 22:52:52 +08:00
richΛrd 82fc800b08
feat: parameterizable number of connections per IP (#994) 2024-01-08 15:05:21 -04:00
Prem Chaitanya Prathi 369a025b7c
fix: use both filter and legacyFilter flags to determine if filter is enabled and set Waku2 ENR field (#996) 2024-01-08 21:26:16 +05:30
Prem Chaitanya Prathi 4e19d93da1
chore: increase maxContentFilter limit for Filter protocol to 100 (#1000) 2024-01-08 21:18:56 +05:30
Roman Zajic 68c0ee2598
chore: store tests coverage improvement (#993) 2024-01-05 20:14:17 +08:00
richΛrd ff68934354
chore: improve light client logging (#992) 2024-01-04 10:41:11 -04:00
Prem Chaitanya Prathi adda1cfd6d
fix: handle existing static peer discovered with ENR that causes crash (#990) 2024-01-04 10:33:42 -04:00
richΛrd 846183d515
chore: use nwaku's db format (#965) 2024-01-03 12:49:54 -04:00
Prem Chaitanya Prathi a327e56377
fix: return error while serializing rln metadata in case chainID is 0 (#985) 2024-01-03 21:09:59 +05:30
Prem Chaitanya Prathi 6141f94b40
fix: presist lastProcessedBlock correctly when no rln events are processed (#981) 2024-01-03 20:52:55 +05:30
Prem Chaitanya Prathi ec468e0a26
chore: update examples with autosharding and static sharding (#986) 2024-01-03 20:44:59 +05:30
Prem Chaitanya Prathi 71aec6d37b
feat: metrics dashboard (#980) 2024-01-03 11:11:11 +05:30
Prem Chaitanya Prathi bad57fcb0c
fix: get peers api to not include own node ID as peer (#974) 2024-01-03 08:05:04 +05:30
Prem Chaitanya Prathi b5068b4357
feat: relay msg size (#963)
Co-authored-by: richΛrd <info@richardramos.me>
2024-01-03 07:06:41 +05:30
Prem Chaitanya Prathi 4f8ed170fe
fix: ENR seq check to skip adding already existing peer (#978) 2024-01-03 06:35:23 +05:30
richΛrd c00b218215
chore: add retry mechanism for rpc calls and rename db function (#966) 2024-01-02 12:35:58 -04:00
Prem Chaitanya Prathi 02e2c5926e
fix: return appropriate error code for filter subscribe ping (#975) 2024-01-02 19:41:55 +05:30
Prem Chaitanya Prathi 4ef0c75ded
fix: use node's clusterId when adding peer from admin REST API & don't subscribe to default pubsub topic for non-zero clusterID (#973) 2024-01-02 18:04:43 +05:30
kaichao b4ba7b75d4
chore: stop light filter node by default (#964) 2023-12-21 08:44:51 +08:00
Roman Zajic 097123a30e
chore: lightpush tests coverage improvement (#957) 2023-12-15 22:09:56 +08:00
richΛrd 0218169b5f
fix: remove more noisy logs from discv5 (#961) 2023-12-13 10:54:43 -04:00
kaichao 5d1477d5b4
fix: hash calculation of message to include timestamp (#959) 2023-12-13 10:46:23 -04:00
richΛrd c403388ec2
fix: remove extremely noisy logs (#956) 2023-12-11 11:46:23 -04:00
richΛrd 0ba1b63066
chore: remove bridging topics feature (#949) 2023-12-09 13:59:35 -04:00
richΛrd fd4df9221e
fix(lightpush): register lightpush protocol when instantiated (#951) 2023-12-08 11:55:15 -04:00
harsh jain d7c7255aa4
refactor: shard LRU for storing peers by shard (#840)
Co-authored-by: Richard Ramos <info@richardramos.me>
2023-12-06 14:34:58 -04:00
richΛrd 48ab9e6ce7
fix: number of connected peers per topic (#948) 2023-12-06 09:38:56 -04:00
richΛrd 6ab2cfb53b
fix: take into account the ENR seq to determine if a peer is new or not (#945) 2023-12-06 09:12:48 -04:00
richΛrd f0ed5e32d5
fix(store): set pagesize behavior match nwaku (#944) 2023-12-06 09:02:05 -04:00
Prem Chaitanya Prathi 021265eba4
feat: fill msg timestamp while appending RLN proof it is not set (#940) 2023-12-06 07:27:00 +05:30
Prem Chaitanya Prathi 5a5ee51f4b
feat: include pubsubTopics supported by peer in getPeers REST API (#943) 2023-12-06 07:17:59 +05:30