Simon-Pierre Vivier
d60ff3e0e6
chore(archive): archive and drivers refactor ( #2761 )
...
* queue driver refactor (#2753 )
* chore(archive): archive refactor (#2752 )
* chore(archive): sqlite driver refactor (#2754 )
* chore(archive): postgres driver refactor (#2755 )
* chore(archive): renaming & copies (#2751 )
* posgres legacy: stop using the storedAt field
* migration script 6: we still need the id column
The id column is needed because it contains the message digest
which is used in store v2, and we need to keep support to
store v2 for a while
* legacy archive: set target migration version to 6
* waku_node: try to use wakuLegacyArchive if wakuArchive is nil
* node_factory, waku_node: mount legacy and future store simultaneously
We want the nwaku node to simultaneously support store-v2
requests and store-v3 requests.
Only the legacy archive is in charge of archiving messages, and the
archived information is suitable to fulfill both store-v2 and
store-v3 needs.
* postgres_driver: adding temporary code until store-v2 is removed
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
Co-authored-by: gabrielmer <101006718+gabrielmer@users.noreply.github.com>
Co-authored-by: Ivan Folgueira Bande <ivansete@status.im>
2024-07-12 18:19:12 +02:00
Aaryamann Challani
6ef45927f1
fix(rln_keystore_generator): improve error handling for unrecoverable failure ( #2881 )
2024-07-10 19:12:49 +02:00
gabrielmer
1071ffc6c8
chore: deprecating named sharding ( #2723 )
2024-07-09 18:36:12 +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
Darshan K
8da2a9c0a5
chore: refactor relative path to better absolute ( #2861 )
2024-07-06 00:03:38 +02:00
Ivan Folgueira Bande
b574636e72
Merge branch 'release/v0.30' into update-master-from-release-v0.30
2024-07-02 10:16:40 +02:00
gabrielmer
3e8094a4ef
chore: saving agent and protoVersion in peerStore ( #2860 )
2024-07-01 13:29:14 +02:00
Darshan K
d41280cc7a
chore: unit test for duplicate message push ( #2852 )
...
* chore: add unit test for testing duplicate message push with timedcache
* chore: update according to better naming convention
---------
Co-authored-by: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com>
2024-06-28 18:16:06 +05:30
Darshan K
7ad9722ecf
chore: remove all pre-nim-1.6 deadcode from codebase ( #2857 )
2024-06-28 16:04:57 +05:30
Aaryamann Challani
e093af4c12
chore(rln-relay): add chain-id flag to wakunode and restrict usage if mismatches rpc provider ( #2858 )
2024-06-28 11:19:16 +02:00
Alvaro Revuelta
393d65faf9
chore: add TWN parameters for RLNv2 ( #2843 )
2024-06-27 11:45:21 +02:00
gabrielmer
67c6b2142c
chore: adding origin to peers admin endpoint ( #2848 )
2024-06-26 17:59:12 +02:00
Ivan FB
75ed5d14e3
chore: archive.nim - increase the max limit of content topics per query to 100 ( #2846 )
2024-06-26 12:24:15 +02:00
Aaryamann Challani
ec3d02a028
fix(rln-relay): clear nullifier log only if length is over max epoch gap ( #2836 )
2024-06-24 13:29:56 +02:00
Darshan K
944b044e93
chore: better descriptive log ( #2826 )
...
* chore: update logs with topic discription & debug msg
* chore: update unit according to error msg
* chore: update rest unit according to error msg
* chore: add content-topic with debug msg
2024-06-20 18:38:55 +05:30
Aaryamann Challani
aa16002a4e
feat(rlnv2): clean fork of rlnv2 ( #2828 )
...
* chore(rlnv2): contract interface changes (#2770 )
* fix: tests
* fix: remove stuint[32]
* chore(submodule): update zerokit submodule to v0.5.1 (#2782 )
* fix: remove cond comp for lightpush test
* fix: ci and nonceManager
2024-06-20 14:55:50 +02:00
Aaryamann Challani
7e4f18cda7
feat(rlnv2): clean fork of rlnv2 ( #2828 )
...
* chore(rlnv2): contract interface changes (#2770 )
* fix: tests
* fix: remove stuint[32]
* chore(submodule): update zerokit submodule to v0.5.1 (#2782 )
* fix: remove cond comp for lightpush test
* fix: ci and nonceManager
2024-06-20 11:35:21 +02:00
Akhil
0b97106cbe
feat: RLN proofs as a lightpush service ( #2768 )
2024-06-13 21:10:00 +04:00
gabrielmer
767e89d5f1
added message to failed assert ( #2805 )
2024-06-12 22:27:10 +02:00
NagyZoltanPeter
641aa48696
Use random ports in rest tests instead of fixed ones ( #2804 )
2024-06-12 15:07:33 +02:00
gabrielmer
49372441c5
fix: increase on chain group manager starting balance ( #2795 )
2024-06-10 14:31:16 +02:00
Ivan FB
21a96cea7d
postgres partitions: ensure the partition ranges are o'clock ( #2776 )
...
Also, skip the error "partition already exists" because that happens
when multiple nodes interact with the same database.
2024-06-05 17:45:38 +02:00
gabrielmer
3fd715cfc2
unifying clusterId to be uint16 ( #2777 )
2024-06-05 15:32:35 +02:00
Ivan FB
8a51db68bd
test_waku_store.nim: add logs to better analyse uncertain flaky tests ( #2740 )
2024-05-29 10:05:07 +02:00
Prem Chaitanya Prathi
b13a11ad7c
fix: move postgres related tests under linux conditional
2024-05-28 17:24:22 +05:30
Simon-Pierre Vivier
6ab1084d46
fix: invalid cursor returning messages ( #2724 )
...
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-05-27 10:54:10 -04:00
Simon-Pierre Vivier
2db1cf3fcb
fix: store v3 bug fixes ( #2718 )
2024-05-23 08:01:52 -04:00
Ivan FB
652fc172d4
chore: generic change to reduce the number of compilation warnings ( #2696 )
2024-05-16 22:29:11 +02:00
Ivan FB
103ed86021
test_client: simple sleep to try avoid macos CI test failures ( #2707 )
2024-05-16 18:04:04 +02:00
Ivan FB
6df7df2bb2
test_client: add nil error handling after serverSwitch.start() clientSwitch.start() ( #2703 )
2024-05-15 12:36:17 +02:00
Akhil
41cdb92be7
feat: Added message size check before relay for lightpush ( #2695 )
2024-05-15 14:13:13 +04:00
Ivan FB
0b2859ed5a
chore: move code from wakunode2 to a more generic place, waku ( #2670 )
...
* testlib/wakunode.nim: not use cluster-id == 1 to avoid test rln by default
2024-05-13 17:45:48 +02:00
Álex Cabeza Romero
d3a2c4e76d
test(sharding): Implement sharding tests ( #2603 )
...
* Implement sharding tests.
2024-05-13 17:43:14 +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
5440dd3fbc
chore: Postgres enhance get oldest timestamp ( #2687 )
...
* postgres: consider also the existing paritions when getting oldest timestamp
* test_driver_postgres_query: adapt test to oldest timestamp
2024-05-10 18:31:01 +02:00
gabrielmer
bbffa88a0d
fix: use await instead of waitFor in async tests ( #2690 )
2024-05-10 14:13:58 +02:00
NagyZoltanPeter
e028362086
feat: Added flexible rate limit checks for store, legacy store and lightpush ( #2668 )
...
* Added flexible rate limit checks for store, legacy store and lightpush. Also added rate and traffic metrics.
* Fix chat2 after WakuLegacyStoreCodec rename
* Update waku/common/ratelimit.nim
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
* Update waku/common/ratelimit.nim
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
* Update waku/waku_store_legacy/protocol.nim
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
* Fix review findings, added limit to debug logs
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-05-09 20:07:49 +02:00
Simon-Pierre Vivier
3e51b9d904
fix: message cache removal crash ( #2682 )
2024-05-09 10:38:55 -04:00
gabrielmer
42b250b9e9
adding wait after starting node to avoid segfault ( #2686 )
2024-05-09 11:31:58 +02:00
Simon-Pierre Vivier
9ae579b714
feat: store v3 return pubsub topics ( #2676 )
2024-05-08 15:35:56 -04:00
gabrielmer
9be3221b5d
feat: supporting meta field in store ( #2609 )
2024-05-06 10:20:21 +02:00
Ivan FB
1d35ca970f
refactor: big refactor to add waku component in libwaku instead of onlu waku node ( #2658 )
2024-05-03 14:07:15 +02:00
Simon-Pierre Vivier
db72e2b823
fix: store v3 validate cursor & remove messages ( #2636 )
2024-05-01 14:47:06 -04:00
Aaryamann Challani
44703f2608
fix(waku_keystore): sigsegv on different appInfo ( #2654 )
...
* fix(waku_keystore): sigsegv on different appInfo
* fix: field specific errors
* fix: more verbose error logs
2024-05-01 23:05:22 +05:30
Aaryamann Challani
8ada4e06f1
fix(rln-relay): persist metadata every batch during initial sync ( #2649 )
...
* fix(rln-relay): persist metadata every batch during initial sync
* fix: test
* Apply suggestions from code review
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
* patch: isOkOr template
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-04-30 18:52:47 +05:30
Ivan FB
7bab843003
refactor: metrics server. Simplify app.nim module ( #2650 )
2024-04-30 15:07:17 +02:00
Aaryamann Challani
7dd7531a4a
chore(rln-relay): resultify rln-relay 1/n ( #2607 )
...
* chore(rln-relay): resultify rln-relay 1/n
* fix: v2 too
* fix: for static group manager
* fix: cleanup, make PR digestable
* fix: remove resultified retry wrapper
* fix: cleanup
* fix: cleanup
2024-04-26 11:53:58 +02:00
Simon-Pierre Vivier
665d9e3a06
feat: store v3 ( #2431 )
2024-04-25 09:09:52 -04:00
Ivan FB
963d79aee7
refactor: addition of waku_api/rest/builder.nim and reduce app.nim ( #2623 )
2024-04-24 15:59:50 +02:00
NagyZoltanPeter
daa88019d0
chore: Separation of node health and initialization state from rln_relay ( #2612 )
...
* Separation of node health and initialization state from rln_relay status. Make (only) health endpoint avail early and install others in the last stage of node setup.
* Proper json report from /health, adjusted and fixed test, added convenient script for checking node health
* Stop wakunode2 if configured rest server cannot be started
* Fix wakuRlnRelay protocol existence check
* Fix typo
* Removed unused imports from touched files.
* Added missing /health test for all
2024-04-23 18:53:18 +02:00