Álex Cabeza Romero
49dd6c1989
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
gabrielmer
7d4857ea6c
chore: closing ping streams ( #2692 )
2024-05-13 12:07:57 +02:00
Ivan FB
8451cf8e1b
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
be5471c6f3
feat: adding json string support to bindings config ( #2685 )
2024-05-10 10:56:17 +02:00
NagyZoltanPeter
026d804a0d
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
fa26d05f8e
fix: message cache removal crash ( #2682 )
2024-05-09 10:38:55 -04:00
Simon-Pierre Vivier
d700006a6a
feat: store v3 return pubsub topics ( #2676 )
2024-05-08 15:35:56 -04:00
Aaryamann Challani
6a1af92276
chore(rln-relay): health check should account for window of roots ( #2664 )
...
* test(rln-relay): health check should account for window of roots
* fix: some type-fu
* fix: widen the type vs narrowing
* fix: add extra parens
2024-05-08 17:48:44 +05:30
Ivan FB
b46226fca0
postgres_driver: delete partitions in time retention policy ( #2679 )
2024-05-07 23:42:01 +02:00
richΛrd
82f95999cd
fix: add `meta` to sqlite migration scripts ( #2675 )
2024-05-07 09:39:06 -04:00
gabrielmer
22f64bbd44
chore: updating TWN bootstrap fleet to waku.sandbox ( #2638 )
2024-05-07 13:37:17 +02:00
gabrielmer
a46d4451eb
feat: supporting meta field in store ( #2609 )
2024-05-06 10:20:21 +02:00
Ivan FB
f8184a6de8
postgres_driver.nim: debug -> trace put PotsgresDriver ( #2667 )
2024-05-03 17:41:14 +02:00
Aaryamann Challani
cee020f26d
fix(filter): log is too large ( #2665 )
2024-05-03 19:05:24 +05:30
Ivan FB
2463527b24
refactor: big refactor to add waku component in libwaku instead of onlu waku node ( #2658 )
2024-05-03 14:07:15 +02:00
Prem Chaitanya Prathi
853ec1869e
fix: issue #2644 properly ( #2663 )
2024-05-03 13:40:20 +05:30
Ivan FB
404810aa8d
refactor: simplify app.nim and move discovery items to appropriate modules ( #2657 )
2024-05-01 21:13:08 +02:00
Simon-Pierre Vivier
e03d1165e6
fix: store v3 validate cursor & remove messages ( #2636 )
2024-05-01 14:47:06 -04:00
Aaryamann Challani
5dd645cfc3
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
Ivan FB
d5e0e4a9b1
chore: log enhancement for message reliability analysis ( #2640 )
...
* log enhancement for message reliability analysis
The next modules are touched:
- waku_node.nim
- archive.nim
- waku_filter_v2/protocol.nim
- waku_relay/protocol.nim
Co-authored-by: gabrielmer <101006718+gabrielmer@users.noreply.github.com>
2024-05-01 10:25:33 +02:00
Aaryamann Challani
a9e19efd7a
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
4a110f65ff
refactor: metrics server. Simplify app.nim module ( #2650 )
2024-04-30 15:07:17 +02:00
Ivan FB
6382dedb42
waku_node: first of all stop the waku-switch when stopping the waku-node ( #2651 )
...
This is aimed to avoid having flaky tests
2024-04-30 12:52:11 +02:00
Ivan FB
069b23f67e
waku_node.nim: simplify stop proc ( #2645 )
...
There is no need to explicitly stop mounted libp2p protocols
because they are already being stopped after the switch.stop()
is being called
2024-04-29 17:47:18 +02:00
Ivan FB
28389cf043
rest/store/types: contentTopic -> content_topic ( #2646 )
2024-04-29 16:19:07 +02:00
Prem Chaitanya Prathi
8d1b0834db
fix: handle named sharding in enr ( #2647 )
2024-04-29 18:53:49 +05:30
Prem Chaitanya Prathi
6e6cb298a3
fix: parse shards properly in enr config for non twn ( #2633 )
2024-04-26 17:51:52 +05:30
NagyZoltanPeter
2a4c0f1543
chore: Enabling to use a full node for lightpush via rest api without lightpush client configured ( #2626 )
...
* Enabling to use a full node for lightpush via rest api without light push client configured
2024-04-26 12:42:47 +02:00
Aaryamann Challani
1d7ff2881b
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
843fe217fa
fix: proto field numbers & status desc ( #2632 )
2024-04-25 15:43:21 -04:00
NagyZoltanPeter
5f65565c85
fix: missing rate limit setting for legacy store protocol ( #2631 )
2024-04-25 17:51:34 +02:00
Simon-Pierre Vivier
0b0fbfad5c
feat: store v3 ( #2431 )
2024-04-25 09:09:52 -04:00
Aaryamann Challani
9c9883a630
fix(rln-relay): enforce error callback to remove exception raised from retryWrapper ( #2622 )
2024-04-24 17:11:22 +02:00
Ivan FB
b28207ab07
refactor: addition of waku_api/rest/builder.nim and reduce app.nim ( #2623 )
2024-04-24 15:59:50 +02:00
NagyZoltanPeter
6d135b0d1b
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
Aaryamann Challani
1a23700d54
fix(rln-relay): increase retries for 1 minute recovery time ( #2614 )
2024-04-23 15:11:14 +02:00
gabrielmer
6bc79bc739
chore: enabling rest api as default ( #2600 )
2024-04-23 10:23:13 +03:00
Prem Chaitanya Prathi
e61e4ff90a
fix: don't use WakuMessageSize in req/resp protocols ( #2601 )
...
* fix: don't use WakuMessageSize in req/resp protocols
2024-04-20 09:10:52 +05:30
Ivan FB
1ba9df4be0
refactor: move app.nim and networks_config.nim to waku/factory ( #2608 )
2024-04-19 20:03:36 +02:00
kaichao
768c61b114
fix: create options api for cors preflight request ( #2598 )
2024-04-18 18:29:50 +08:00
Ivan FB
4a8e62ac5e
fix: node restart test issue ( #2576 )
...
* test_protocol.nim: enhance test reboot and connect
- Is not necessary to start the node if the switch object has been
already started
- Enable an existing "Relay can receive messages after reboot and
reconnect" test
- Explicit reconnect to peer in "Relay can receive messages after reboot
and reconnect" test
* tests/waku_relay/utils: avoid starting the proto again in newTestSwitch proc
With that, we avoid double start of the protocol.
* bump nim-libp2p
2024-04-18 11:20:39 +02:00
Ivan FB
828583adc2
refactor: start moving discovery modules to waku/discovery ( #2587 )
2024-04-17 21:48:20 +02:00
NagyZoltanPeter
a00f350cd1
feat: Added simple, configurable rate limit for lightpush and store-query ( #2390 )
...
* feat: Added simple, configurable rate limit for lightpush and store-query
Adjust lightpush rest response to rate limit, added tests ann some fixes
Add rest store query test for rate limit checks and proper error response
Update apps/wakunode2/external_config.nim
Move chronos/tokenbucket to nwaku codebasee with limited and fixed feature set
Add meterics counter to lightpush rate limits
Co-authored-by: gabrielmer <101006718+gabrielmer@users.noreply.github.com>
2024-04-15 15:28:35 +02:00
gabrielmer
4117fe65b7
chore: adding migration script adding i_query index ( #2578 )
2024-04-15 12:57:35 +03:00
gabrielmer
a04e0d9971
chore: bumping chronicles version ( #2583 )
2024-04-15 10:59:37 +03:00
Aaryamann Challani
480a62facd
fix(rln-relay): reduce sync time ( #2577 )
...
* fix(rln-relay): reduce sync time
* fix: add batch handling of futures to prevent over utilization of cpu
* fix: need to handle the futures on last iteration when it isnt full
2024-04-12 19:02:48 +03:00
Ivan FB
d257855353
fix: rest store: content_topic -> contentTopic in the response ( #2584 )
2024-04-12 17:47:32 +02:00
gabrielmer
f68ac79248
chore: bumping dependencies for 0.27.0 ( #2572 )
2024-04-09 11:17:46 +03:00
Alvaro Revuelta
c87545d53d
fix: regex for rpc endpoint ( #2563 )
2024-04-02 15:14:55 +02:00
richΛrd
2aa835e3bf
feat(c-bindings): rln relay ( #2544 )
2024-03-27 10:08:53 -04:00