harsh jain
a5f9ee5ad8
feat(CommonService): add channel and use commonService in discv5 ( #735 )
...
* feat(CommonService): add channel and use commonService in discv5
* fix: add mutex to PushToChan
* fix: remove generic functionality
2023-09-18 16:41:40 +07:00
Richard Ramos
fb2df14cb7
feat: 0.8.0
2023-09-17 15:10:25 -04:00
Richard Ramos
2060c8c837
feat: allow running rln with no credentials
2023-09-15 10:18:44 -04:00
Richard Ramos
22b097817e
feat(rln-relay): use zerokit 0.3.4 to obtain number of leaves set in merkle tree
2023-09-15 10:13:02 -04:00
Richard Ramos
e1a84aab0e
chore(rln-relay): docs and docker
2023-09-14 14:30:48 -04:00
Prem Chaitanya Prathi
bfc3083fb1
feat: update WakuPeerStore to store pubSubTopics for a peer ( #734 )
...
* feat: update peerStore to store pubSubTopics a peer is linked to
* derive pubSubTopics from ENR
* New API to retrieve peers by shard information
2023-09-14 20:30:06 +05:30
Richard Ramos
55bc21c604
feat(rln-relay): isReady
2023-09-14 10:47:27 -04:00
Richard Ramos
7beaa3f029
feat(rln-relay): ensure execution order for pubsub validators
2023-09-14 09:38:28 -04:00
Richard Ramos
ab7e45c735
feat: make RLN available by default
2023-09-14 09:03:18 -04:00
Prem Chaitanya Prathi
8df69279ee
chore:remove duplicate declaration of relay protocol const ( #736 )
2023-09-14 14:06:08 +05:30
harsh jain
4b1c188cf0
feat: add common protocol design ( #724 )
...
* feat: add common protocol design
* fix: remove redundant vars
* fix: use AppDesign's ctx
* refactor: relay, add AppDesign
* feat: changes for suggestions
* test: commonService start/stop execution
* fix: lint error
* nit: add comments
2023-09-13 12:18:44 +07:00
Richard Ramos
2aea2f5ca5
fix: time calculation for fetching events
2023-09-12 12:09:30 -04:00
Richard Ramos
75486f8226
chore(rln-relay): add logs for fetching events
2023-09-12 11:22:07 -04:00
Richard Ramos
dcc87cf24f
chore(lint): adds `make lint-full` target and fixes some linting errors
2023-09-12 09:54:34 -04:00
Prem Chaitanya Prathi
db25b307e2
Fix/filterv2 ( #722 )
...
* fix: updated filterv2 protocol as per rfc, make pubsub topic optional
* chore: make broadcaster optional in filter client
* reverting optional pubSub topic in Filter.MessagePush
* fix: revert pubSubTopic as optional and add higher level validation
* Update waku/v2/protocol/filter/client.go
Co-authored-by: richΛrd <info@richardramos.me>
---------
Co-authored-by: richΛrd <info@richardramos.me>
2023-09-12 18:04:43 +05:30
Richard Ramos
db3a2d53b3
fix: log enr only after it has been setup
2023-09-08 17:37:23 -04:00
Richard Ramos
cc28267951
feat: append RLN proofs when posting messages in REST/RPC
2023-09-08 14:42:33 -04:00
Richard Ramos
18efd2c737
chore(rln-relay): clean up nullifier table every MaxEpochGap
2023-09-08 14:13:12 -04:00
Richard Ramos
793c059ea7
fix: loop counter for writing multiaddresses in enr
2023-09-08 13:45:11 -04:00
Richard Ramos
be982d8617
chore: add tls/ws to address factory
2023-09-08 12:25:14 -04:00
Richard Ramos
8783cd2f45
chore(rln-relay): use the only key from keystore if only 1 exists
2023-09-08 12:05:32 -04:00
harsh jain
08cabab41f
fix: and optimising fetching membership events ( #706 )
...
* fix: and optimising fetching membership events
* fix: start from lastProcessedBlock+1
* test: fetching membership logic
* refactor: usage of rlnInstance,rootTracker,groupManager
rlnInstance, rootTrack were previously created while creating rlnRelay
but were assigned to groupManager on Start of rlnRelay. This created
unncessary dependency of passing them to static and dynamic group
manager.
Web3Config uses interface EthClientI for client, so that we can pass
mock client for testing MembershipFetcher.
* fix: failing test
* fix: lint error
* fix: account for PR suggestions
* fix: failing race test
* fix: dont' increase fromBlock on error
* nit: fix naming and add comments
2023-09-07 23:23:48 +07:00
Prem Chaitanya Prathi
092811658e
fix: changes as per review comments in #714 and fix test ( #717 )
2023-09-07 15:01:31 +05:30
Siddarth Kumar
7badb4a37b
Fix panic in peer manager ( #714 )
...
* fix: slice error for index out of bounds
this commit fixes slicing `notConnectedPeers` array with 0 to a negative value of `numPeersToConnect` by first checking if `numPeersToConnect` are greater than 0
2023-09-07 12:06:43 +05:30
Richard Ramos
76b007163a
feat: upgrade go-zerokit-rln to use zerokit 0.3.2
2023-09-06 10:38:06 -04:00
Richard Ramos
def745cfba
chore(rln-relay): confirm that the provided credential is correct using onchain query
2023-09-06 10:17:46 -04:00
Richard Ramos
7fbb9ebe42
chore: build examples as part of CI build process to capture compile errors
2023-09-06 10:05:26 -04:00
Prem Chaitanya Prathi
d13b1f0aa3
autosharding content-topic config ( #696 )
...
* chore: add shard choice simulation test
* feat: add new flags for pubsub and contentTopics and deprecate topic flag
* chore: remove store-resume-peer config and comment out functionality until redesign of store is done
* chore: fix code to use contentTopics value
* fix: use default waku topic only if no other topics are provided in the config
2023-09-06 10:07:21 +05:30
Richard Ramos
e66f0e3b9c
fix: content topic usage on the examples
2023-09-05 11:19:21 -04:00
Richard Ramos
f9179cd116
feat: store and retrieve valid merkle roots in RLN db
2023-09-04 10:51:40 -04:00
Richard Ramos
f9ed8d973c
fix(rln-relay): sync from deployed block number
2023-09-04 10:30:37 -04:00
Richard Ramos
84fa332e1c
fix: allow mixing named and static shards
2023-09-04 10:10:49 -04:00
Richard Ramos
5fcfbb9897
feat: use rln registry contract
2023-09-04 10:02:14 -04:00
Richard Ramos
ab3f21f209
chore: compile smart contracts and generate types
2023-09-04 10:02:14 -04:00
Richard Ramos
30422114f6
refactor: use a map to store credentials instead of an array
2023-09-04 10:02:14 -04:00
richΛrd
8aa1c4a39b
refactor(filter): unsubscribe waitgroup, execute async, and guard against calling functions while the protocol is not started ( #692 )
...
* refactor(filter): unsubscribe waitgroup and async
* refactor: verify started state for doing filter operations
2023-09-04 09:53:51 -04:00
Richard Ramos
e8bd38a023
fix: add back to peerstore dns4 addresses removed by go-libp2p identify
2023-09-01 16:53:07 -04:00
Richard Ramos
215c7c46b6
chore: exclude directories from code climate
2023-08-31 15:57:43 -04:00
Richard Ramos
9c0bebc859
refactor: use a map to store credentials instead of an array
2023-08-31 15:42:45 -04:00
Richard Ramos
0854edaf3d
refactor: keystore as a data type
2023-08-31 15:42:45 -04:00
harsh jain
229fb7a970
refactor: peerManager test ( #683 )
...
* refactor: peerManager test
* fix: break down and fix peerManager test
* refactor: codeClimate linting for peerManager/ConnectionGater
2023-08-30 21:33:57 +07:00
harsh jain
accd9ff3e3
feat: add serviceSlot ds ( #684 )
...
* feat: add serviceSlot ds
* test: service slot
* nit: codeClimate related changs
* nit: based on comments
* nit: dont' run getPeers for WakuRelayIDv200
2023-08-30 18:57:22 +07:00
harsh jain
4a546d12d3
fix: dont send to subscriptions that don't have any ContentTopic ( #695 )
2023-08-30 17:35:08 +07:00
richΛrd
4c52149fac
chore: log succesful message pushes ( #694 )
...
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
2023-08-30 10:48:06 +05:30
Andrea Maria Piana
8ad08d6b04
Check nils when deliting subscription ( #691 )
2023-08-29 12:53:39 +01:00
Iuri Matias
6463dbeb70
chore: update Readme to reflect required go version
2023-08-28 13:32:28 -04:00
Prem Chaitanya Prathi
67d0b77147
chore: fix frequent logging from poll ( #688 )
2023-08-28 14:05:59 +05:30
harsh jain
467d1b2ca5
refactor: peerConnector ( #665 )
...
* refactor: peerConnector
* fix: code climate and dont waitOn subscriptions PeerData
* fix: check in peerConnector is on outRelay connections
* fix: introduced bug in peerConnector
2023-08-28 13:47:48 +07:00
richΛrd
09eb8ed19b
fix(discv5): threadsafe peerCh ( #687 )
2023-08-28 11:15:26 +05:30
Richard Ramos
041dc4070a
fix(filterV2): requestID and log request type
2023-08-25 13:05:04 -04:00