Commit Graph

230 Commits

Author SHA1 Message Date
Richard Ramos 87ce20d38e feat: add /debug/pprof endpoint when using --pprof flag 2022-12-10 21:55:41 -04:00
Richard Ramos 83fd53d432 refactor: use context instead of quit channel 2022-12-10 11:51:08 -04:00
Richard Ramos a66bf8a893 fix: filter can submit broadcaster envelopes 2022-12-09 10:20:16 -04:00
Richard Ramos 84c7022e2d feat: add ntp timesource 2022-12-09 10:20:16 -04:00
Richard Ramos ff8c3009c7 refactor: store 2022-12-06 12:06:17 -04:00
Richard Ramos 982707e02c refactor(discv5): execute discover loop as separate goroutine 2022-11-29 15:28:13 -04:00
Richard Ramos 041c7be67d fix: RLN Merkle Root window 2022-11-26 17:09:12 -04:00
Richard Ramos 3620a6b222 feat: allow specifying list of peerIDs to chose when doing a request 2022-11-25 17:37:54 -04:00
Richard Ramos 04a2a3fbae fix(store): max records per query 2022-11-24 08:51:03 -04:00
Richard Ramos 22404a0608 fix: log format 2022-11-21 14:33:46 -04:00
Richard Ramos a247e8346d chore: add extra logging for message IDs 2022-11-16 10:42:20 -04:00
Richard Ramos dbe152b8e5 feat: find by criteria 2022-11-16 10:38:21 -04:00
Richard Ramos c8fc0404d1
chore: rename status-im/go-waku to waku-org/go-waku 2022-11-09 16:03:40 -04:00
Richard Ramos 8b64934e2c feat: peer exchange 2022-11-09 17:26:38 +03:00
Richard Ramos 5f65c5a9f4 fix: limit the number of content filters in query 2022-11-09 17:14:01 +03:00
Richard Ramos dc0968ca0a fix: chat2 rln credentials 2022-11-09 17:09:36 +03:00
Richard Ramos 38093bf660 chore: move dependencies from status-im to waku-org 2022-10-27 11:41:23 -04:00
Richard Ramos 9b5922bc74 fix(rln): keep track of last loaded index 2022-10-26 18:17:10 -04:00
Richard Ramos 665968deea feat(rln): multiple acceptable roots 2022-10-26 18:16:55 -04:00
Richard Ramos 721c27e101 fix(rln): attempt to re-subscribe if websocket conn fails 2022-10-21 15:24:26 -04:00
Richard Ramos 3b4dcf3195 fix(rln): remove idcommitment and idkey 2022-10-21 11:42:18 -04:00
Richard Ramos df38038bc0 feat: allow lightpush to be used as client always 2022-10-20 09:56:47 -04:00
Richard Ramos 57a525f71e chore: upgrade libp2p 2022-10-19 15:54:02 -04:00
Richard Ramos 644debe042 refactor(rln): credentials management 2022-10-10 17:41:28 -05:00
Richard Ramos 1a8543f98f fix: add lock to nullifier log 2022-10-09 12:15:28 -04:00
Richard Ramos e91fd0e649 feat: use verifyProofWithRoots 2022-10-07 19:05:19 -04:00
Richard Ramos 4841f89eff
fix: handling bytes 2022-10-05 18:08:01 -04:00
Richard Ramos 4d23f4256a feat: zerokit RLN 2022-10-04 19:27:21 -04:00
Richard Ramos 5af5e89c08
chore: improve pagination logic (#325) 2022-10-03 15:26:45 -04:00
Richard Ramos f6cd9904c5
fix: invalid order when pagination is backwards (#313) 2022-09-15 09:23:45 -04:00
Richard Ramos 8d42febe18
fix: make 0x prefix optional (#306) 2022-09-14 15:19:04 -04:00
Richard Ramos 83250be0fb
feat: ephemeral messages (#305) 2022-09-12 12:10:34 -04:00
Richard Ramos 3716ebdf1d
fix: chat2 feedback 2022-09-11 17:08:58 -04:00
Richard Ramos 8d885febf7
fix: set default response if nil 2022-08-19 12:00:20 -04:00
Richard Ramos 7943f8f657
fix: close eth connection on stop 2022-08-18 12:27:10 -04:00
Richard Ramos bcaf229994
fix: linting, printing addresses in chat2, adding err channel to event subs 2022-08-15 21:39:31 -04:00
Richard Ramos 8538013f29 fix: update contracts 2022-08-15 15:22:13 -04:00
Richard Ramos 39f70f71a9 feat: use generic flags and convert values to specific data types 2022-08-15 15:22:13 -04:00
Richard Ramos 4589b6c31c feat: make rln optional 2022-08-15 14:41:58 -04:00
Richard Ramos 4292b14ef4 chore: make dynamic tests optional 2022-08-15 14:40:10 -04:00
Richard Ramos c2ce8326ff test: rln onchain 2022-08-15 14:40:10 -04:00
Richard Ramos fb6aa64442 feat: store credentials in a file 2022-08-15 14:40:10 -04:00
Richard Ramos f486236d0d fix: don't use goroutines for processing logs 2022-08-15 14:40:10 -04:00
Richard Ramos 893f9f396c feat: chat2 dynamic RLN (#283) 2022-08-15 14:40:10 -04:00
Richard Ramos 132ac128e5 feat: RLN (dynamic) 2022-08-15 14:40:10 -04:00
Richard Ramos 587fd148ca chore: use static rln lib and fix lint 2022-08-15 14:40:10 -04:00
Richard Ramos 6481e72885 feat: chat2 + RLN(static) 2022-08-15 14:40:10 -04:00
Richard Ramos 67a43b8ba7 feat: test unit for RLN (static) 2022-08-15 14:40:10 -04:00
Richard Ramos 1636a33835 feat: RLN (static) 2022-08-15 14:40:10 -04:00
Richard Ramos e7bc6799ed refactor: decouple rpc and rest http servers 2022-08-09 11:59:47 -04:00
Elise Alix 924acf67d9
fix: verify matching `requestId` before removing subscription (#280)
* Check we are removing content topics for the correct request
* Verify request id matches before removing peer as well
2022-08-03 09:35:25 -04:00
Richard Ramos 546416a9d5
refactor: remove WakuStoreWithRetentionPolicy and add build tag to migrations (#281) 2022-08-03 09:32:52 -04:00
Richard Ramos a549337a42
fix: quit channel on store 2022-07-28 15:33:56 -04:00
Richard Ramos 4041f5a67a
fix: store recorded messages metric 2022-07-28 15:17:12 -04:00
Nicholas Molnar 2bfdcb6fd1
fix: handle case of unsubscribe from non-existent topic (#276) 2022-07-26 15:20:56 -04:00
Richard Ramos 6043f6db2e
chore: add docs to filter protocol 2022-07-25 13:28:50 -04:00
Richard Ramos e2b04570c1
chore: improve docs 2022-07-25 11:28:17 -04:00
Richard Ramos 27b5ab9c51 chore: test store being decoupled from relay and fix empty contenttopics on filter 2022-06-14 15:53:48 -04:00
Martin Kobetic 2c2725308f
fix: filter deadlock (#262) 2022-06-14 11:53:56 -04:00
Richard Ramos 3c0c3c4eeb
fix: js-waku / nwaku interop (#252) 2022-06-13 14:30:35 -04:00
Martin Kobetic 73af2002ce
fix: races in filter protocol and tests (#260)
* Fix races in filter protocol and tests
* only RLock needed
2022-06-10 08:18:34 -04:00
Richard Ramos fddffed78b fix: restore time variance verification 2022-06-01 15:51:28 -04:00
Richard Ramos 7c0206684f
refactor: use db for serving history queries (#243) 2022-05-30 14:48:22 -04:00
Martin Kobetic 7c44369def
feat: structured logging followup (#248) 2022-05-30 11:55:30 -04:00
Martin Kobetic 0c989d3d8c
feat: structured logging (#242) 2022-05-27 09:25:06 -04:00
Richard Ramos b4697210b0
chore: adding some log messages to store 2022-05-19 16:30:41 -04:00
Nicholas Molnar 5353ae48f2 Use new errgroup 2022-05-17 13:49:40 -04:00
Nicholas Molnar 38fc9ee8bb Push subscriptions in parallel 2022-05-17 13:49:40 -04:00
Richard Ramos 7b3c853c15
refactor: use diff logger for waku 2022-05-06 15:29:31 -04:00
Richard Ramos 3a0fc81889
chore: add docs. pt - 1 (#230) 2022-05-04 17:08:24 -04:00
Richard Ramos bbab0f1714
fix: add topic to broadcast and some comments to functions (#229) 2022-04-25 23:31:26 +04:00
Richard Ramos 15f3abec3a
fix: envelope hash should match messageIdFn hash (#220) 2022-03-23 09:16:11 -04:00
Richard Ramos 290b7663d1
feat: secure websockets (#201) 2022-03-22 09:12:58 -04:00
Richard Ramos e85d112828
feat: store timestamp validity checks (#215) 2022-03-22 08:34:45 -04:00
Nicholas Molnar 21b2e1d97c
Create pluggable store (#210)
* Add store factory
* Add to test
2022-03-18 15:56:34 -04:00
Richard Ramos 61cda61c3d
fix: flag conn error as failure (#209) 2022-03-09 19:15:04 -04:00
Richard Ramos f4f307db87
fix: connect before opening a stream 2022-03-03 12:04:03 -04:00
Richard Ramos b820d797c8
feat: add pubsub topic to Index pb (#200)
* feat: add pubsub topic to Index pb
* fix: flaky test
2022-03-02 12:02:13 -04:00
Richard Ramos df66ef5bb5
fix: race condition in unsubscribe (#197) 2022-02-23 11:08:27 -04:00
Richard Ramos 8d155fb51e
fix: protocol name 2022-02-23 11:06:47 -04:00
Richard Ramos 58f739765e
refactor: use int64 timestamps (#189)
* refactor: use int64 timestamps
* fix: changed PB Timestamp index to 10
2022-02-23 11:01:53 -04:00
Richard Ramos 11d1f8fb0d
feat: result aggregation in resume and enforce max page size (#183)
* feat: result aggregation in resume and enforce max page size
* feat: add WithLogger option to wakunode (#184)
* fix: rebase issues
2022-01-18 14:17:06 -04:00
Richard Ramos 0de19253da
refactor: maintenaibility fixes (#167) 2021-12-08 10:21:30 -04:00
Richard Ramos c45e8a3c31
fix: handle stale clients in filter protocol (#174) 2021-12-08 09:00:20 -04:00
Anthony Laibe 2b225e90e7 feat: Implement logic for publish from node 2021-12-07 14:32:02 +01:00
Anthony Laibe 9bb957afeb feat: build swap and attach it to the store 2021-12-07 14:31:36 +01:00
Richard Ramos 23cbb24a94
fix: use max Int32 instead of 64 due to compile issue on android (#170) 2021-11-25 10:18:33 -04:00
Richard Ramos a3125c7b61
fix: increase response read limit (#169) 2021-11-25 09:46:04 -04:00
Anthony Laibe 3571f0bab9 feat: init swap protocol
* Add proto files
* Add options
* Add credit/debit for soft mode
2021-11-24 13:58:35 +01:00
Richard Ramos ce417a6486
refactor: use WaitGroup for graceful shutdown of worker goroutines (#166) 2021-11-23 11:03:12 -04:00
Anthony Laibe 2afffd9dd9 feat: Add rpc method for filter#getmessages 2021-11-22 13:43:41 +01:00
Richard Ramos e8c08ac18b fix: invalid ticker usage 2021-11-21 10:04:23 -04:00
Richard Ramos 78a0d4d74d fix: replace WIthTopic to ToTopic 2021-11-19 20:04:38 -04:00
Richard Ramos 00ee0b7511 refactor: create separate functions for subscriptions and publishing 2021-11-19 20:04:38 -04:00
Richard Ramos 56ef99e11f refactor: remove topic type 2021-11-19 20:04:38 -04:00
Anthony Laibe 2ae370ca41 test: Add test/refactor filter option 2021-11-18 13:35:46 +01:00
Richard Ramos 6d04308716
feat: 23/WAKU2-TOPICS (#146) 2021-11-10 10:28:45 -04:00
Anthony Laibe 9f504b1150 test: extend coverage with missing test 2021-11-10 14:55:23 +01:00
Richard Ramos 0c873e3c2d
feat: select peer with lowest ping time and test peer functions (#143)
* feat: select peer with lowest ping time and test peer functions
* fix: do not self-ping
2021-11-09 19:34:04 -04:00
Richard Ramos 9426cd133a
fix: store protocol should have a host regardless if acts as store node or not (#142) 2021-11-09 12:18:57 -04:00