Aaryamann Challani
f9bd39ea66
fix(rln-relay): graceful retries on rpc calls ( #2250 )
...
* fix(rln-relay): graceful retries on rpc calls
* fix: missing file
2023-12-11 14:59:16 +05:30
Ivan FB
e6fe6df52e
archive: simplify and enhance async retention policy application ( #2278 )
...
* Avoid using timer and just use an infinite async loop that can be
cancelled at any time.
2023-12-11 08:50:40 +01:00
Simon-Pierre Vivier
c2ded25e11
added sharded peer store pruning ( #2167 )
2023-12-07 07:21:18 -05:00
Simon-Pierre Vivier
dc1d6ce4bf
feat: shard aware peer management ( #2151 )
2023-12-07 06:48:28 -05:00
Ivan FB
32d5c24d29
fix: add protection in rest service to always publish with timestamp if user doesn't provide it ( #2261 )
2023-12-06 14:02:21 +01:00
Sasha
0f3cf94ac2
fix: remove trailing commas from keystore json ( #2200 )
...
* fix: remove trailing commas from keystore json
* keyfile.nim: try a different Json formatting approach
* build keystore
* address comment
---------
Co-authored-by: Ivan Folgueira Bande <ivansete@status.im>
2023-12-01 12:57:19 +01:00
Ivan FB
75296f055c
waku_store/common.nim: correct ret code in PEER_DIAL_FAILURE ( #2260 )
2023-11-30 16:42:58 +01:00
Ivan FB
7f9a0d97fd
chore: Better feedback invalid content topic ( #2254 )
...
* typo correction appplication -> application
* content_topic.nim: better feedback to user when wrong topic is passed
* test_namespaced_topics.nim: updating tests accordingly
2023-11-30 11:11:33 +01:00
omahs
2d27c47c82
chore: fix typos ( #2239 )
2023-11-30 11:08:08 +01:00
Ivan FB
4e953a18d1
fix: waku_filter_v2/common: PEER_DIAL_FAILURE ret code change: 200 -> 504 ( #2236 )
2023-11-30 10:47:45 +01:00
Simon-Pierre Vivier
ffc39e1f55
chore(rest): refactor message cache ( #2221 )
2023-11-28 07:21:41 -05:00
Simon-Pierre Vivier
6f857b46fe
chore: refactoring peer storage ( #2243 )
2023-11-27 08:08:58 -05:00
Ivan FB
75cbea86cb
chore: postres driver allow setting the max number of connection from a parameter ( #2246 )
...
* postres driver: allow setting the max number of connections from a parameter
2023-11-24 16:21:22 +01:00
Abhimanyu
d840d3e7cf
fix: extended Postgres code to support retention policy + refactoring ( #2244 )
...
* updated Postgres retention policy code + refactoring
* Update waku/waku_archive/driver/postgres_driver/postgres_driver.nim
Co-authored-by: Simon-Pierre Vivier <simvivier@status.im>
* updated code review changes
* data unit fixed, processing everything in bytes now
---------
Co-authored-by: Simon-Pierre Vivier <simvivier@status.im>
2023-11-24 15:43:47 +01:00
Abhimanyu
60ed32c25a
feat: Add new DB column messageHash ( #2202 )
...
* feat: added DB column messageHash
* feat: minor change
* feat: minor merge conflict fix
* Update test_resume.nim
* Update test_resume.nim
* randomblob() func used to populate attribute
* PRIMARY key updated - SQLite and Postgres
2023-11-22 17:32:56 +01:00
Abhimanyu
ea33dc2a59
chore: deterministic message hash algorithm updated ( #2233 )
...
* deterministic hash algorithm updated + testcases
* updated code review
2023-11-22 15:23:43 +01:00
gabrielmer
d07d378bb1
chore(REST): returning lightpush support and updated filter protocol ( #2219 )
2023-11-22 10:56:23 +02:00
Ivan FB
3236e29e07
waku_store: better response when the store is requested with wrong cursor ( #2231 )
2023-11-22 09:32:39 +01:00
Simon-Pierre Vivier
0be13a356f
chore: mics. improvements to cluster id and shards setup ( #2187 )
2023-11-21 15:15:39 -05:00
Alvaro Revuelta
54ec62506e
fix(rln): error in api when rate limit ( #2212 )
2023-11-21 19:24:31 +01:00
Ivan FB
d98363bdd7
peer_manager.nim: better feedback if can't dial peer with WakuMetadataCodec ( #2230 )
2023-11-21 14:54:45 +01:00
Abhimanyu
9f9c83e984
chore: removing automatic vacuuming from retention policy code ( #2228 )
...
* retention policy and testcase updated
* removing dead code
* review updated code
2023-11-21 11:27:50 +01:00
Ivan FB
a20c212d13
group_manager.nim more except detail when cant connect eth client ( #2195 )
2023-11-20 23:25:55 +01:00
gabrielmer
3f2f11d4a7
chore: decoupling announced and listen addresses ( #2203 )
2023-11-16 18:15:27 +02:00
Álex Cabeza Romero
e6f8204bc3
test(waku-relay): Relay ( #2101 )
...
* Implement message id tests.
* Implement relay tests.
* Update import paths to use test_all.
2023-11-15 16:11:36 +01:00
Álex Cabeza Romero
53d930395b
test(waku-filter): Unsubscribe tests ( #2085 )
...
* Implement unsubscribe waku filter tests.
* test(waku-filter): Unsubscribe all, payloads and security tests (#2095 )
* Implement waku node filter Security and Privacy tests (#2096 )
2023-11-15 10:26:01 +01:00
NagyZoltanPeter
bdaae90bec
chore: Allow text/plain content type descriptor for json formatted content body ( #2209 )
...
* Allow text/plain content type descriptor for json formatted content body. Refactored duplicated encode/decode functions for rest api
* Fix relay endpoint decodings of content bodies to accept text/plain
* Added support for content body decoder for checking media type if additional parameters are present
* Fix wrong usage of ContentTypeData - appeared only for tests
2023-11-14 16:59:53 +01:00
Vaclav Pavlin
22dde84c08
fix(rest): properly check if rln is used ( #2205 )
...
* fix(rest): properly check if rln is used
* fix(apis): fix remaining usage of defined(rln)
2023-11-10 15:25:07 +01:00
Abhimanyu
06a5acb6e9
Revert "feat: amending computeDigest func. + related test cases ( #2132 )" ( #2180 )
...
This reverts commit 8ea31ac6439498de3ab1b6641633a781bf1d64bd.
2023-11-08 01:41:23 +01:00
Ivan FB
4759388664
chore: Optimize postgres - prepared statements in select ( #2182 )
...
* db_postgres: use prepared statements on most freq select queries
* db_postgres/dbconn.nim adding better feedback in case of query error
* dbconn: use of isOkOr
* pgasyncpool: refactor to reduce code (valueOr, catch:)
2023-11-07 13:38:37 +01:00
Simon-Pierre Vivier
437d37d620
feat(discv5): filter out peers without any listed capability ( #2186 )
2023-11-06 07:31:36 -05:00
gabrielmer
4cff5a9dbc
chore: upgrade dependencies v0.22 ( #2185 )
2023-11-06 13:30:34 +02:00
Ivan FB
e81bc8cd06
fix: lightpush rest ( #2176 )
...
* rest/lightpush/handlers.nim: enhance feedback in case of error.
* lightpush/openapi.yaml: fix typo in pubsubTopic field.
2023-11-01 11:30:53 +01:00
Ivan FB
4a73ee5380
chore: Optimize postgres - use of rowCallback approach ( #2171 )
...
* db_postgres, postgres_driver: better performance by using callback.
There were a bunch of milliseconds being lost due to multiple-row
processing. This commit aims to have the minimum possible row
process time.
* pgasyncpool: clarifying logic around pool conn management.
* db_postgres: removing duplicate code and more searchable proc names.
2023-10-31 14:46:46 +01:00
Simon-Pierre Vivier
f0b1c3a7c6
feat: metadata protocol shard subscription ( #2149 )
2023-10-30 16:58:15 -04:00
Alvaro Revuelta
d008cdf3b1
fix(rest): fix bug in rest api when sending rln message ( #2169 )
2023-10-30 16:19:49 +01:00
Alvaro Revuelta
6b6b0ca16a
chore(networking): lower dhigh to limit amplification factor ( #2168 )
2023-10-30 16:17:39 +01:00
Ivan FB
eb41bc6c2b
chore: Minor Postgres optimizations ( #2166 )
...
* postgres_healthcheck: validate once per minute instead of 30 sec
* postgres_driver.nim: change MaxNumCons from 5 to 50
* postgres_driver.nim: split connPool into writeConPool and readConPool
This aims to avoid clashes in insert and select queries
because the inserts and selects can happen concurrently
in relay and store events, respectively.
2023-10-30 15:16:49 +01:00
Simon-Pierre Vivier
5078ae2430
feat: REST APIs discovery handlers ( #2109 )
2023-10-27 15:43:54 -04:00
NagyZoltanPeter
b6ea215d71
Pull new version of nim-presto that implements RestServer' new error handler callback ( #2144 )
...
Added rest request error handler to capture calls on not installed endpoints
better, more descriptive error message returned.
2023-10-27 16:31:57 +02:00
gabrielmer
f7ed781257
feat: implementing port 0 support ( #2125 )
2023-10-27 10:11:47 +03:00
gabrielmer
855d66df11
chore: adding ext-multiaddr-only CLI flag ( #2141 )
2023-10-24 18:39:25 +03:00
Abhimanyu
69ddeb93bd
Revert "feat: messageHash attribute added in SQLite + testcase ( #2142 )" ( #2154 )
...
This reverts commit a49a0e3c5b475f8a14ad7298e3d1b485969f01d8.
2023-10-24 16:05:39 +02:00
Abhimanyu
a49a0e3c5b
feat: messageHash attribute added in SQLite + testcase ( #2142 )
...
* feat: messageHash attaribute added in SQLite + testcase
* Update tests/waku_archive/test_driver_sqlite_query.nim
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2023-10-24 12:19:52 +02:00
Abhimanyu
8ea31ac643
feat: amending computeDigest func. + related test cases ( #2132 )
...
* feat: amending computeDigest func. + related test cases
* minor fixes
* minor fixes v1: testcase saga continues
---------
Co-authored-by: Vaclav Pavlin <vaclav@status.im>
2023-10-19 11:59:17 +02:00
gabrielmer
8fc16f9e21
fix: consider WS extMultiAddrs before publishing host address ( #2122 )
2023-10-17 12:53:41 +03:00
Álex Cabeza Romero
2c7cc8c551
test(waku-filter): Subscribe tests batch (1/4) ( #2034 )
...
* Implement waku filter client subscribe tests.
* Remove legacy filter tests.
* Fix constant for max criteria per subscription limit.
2023-10-12 20:59:21 +02:00
Alvaro Revuelta
606757fdbb
feat: add new metadata protocol ( #2062 )
2023-10-11 08:58:45 +02:00
Abhimanyu
fb24830fcc
chore: added size based retention policy ( #2098 )
...
* chore: added size based retention policy
* chore: post review code - size based retention policy
* chore: review integrated, size retention updated, vacuuming in capacity retention
* chore: typo fixed
* chore: review integrated
* chore: external config updated to support newly added retention policy
2023-10-10 15:29:09 +05:30
Sergei Tikhomirov
43a3ec1627
fix: return erring response if lightpush request is invalid ( #2083 )
...
fixes #1641
2023-10-09 16:38:23 +02:00