gabrielmer
29c182195d
fix: setting connectivity loop interval to 15 seconds ( #2307 )
2023-12-20 09:38:14 +01:00
Álex Cabeza Romero
91c402b1cc
test(store): Implement store tests ( #2235 , 2240)
...
* Implement store tests
2023-12-19 15:38:43 +01:00
Álex Cabeza Romero
b8b32eb857
refactor(store): HistoryQuery.direction ( #2263 )
...
* Fix issue with default history query ascending value in serde operations: Should use the same value.
* Update direction types to PagingDirection.
2023-12-19 15:10:27 +01:00
Ivan FB
88f2a9f89b
test_driver_postgres: enhance test coverage, multiple and single topic ( #2301 )
...
Co-authored-by: Abhimanyu <ABresting@users.noreply.github.com>
2023-12-19 10:41:50 +01:00
Ivan FB
51199214f9
chore: examples/nodejs - adapt code to latest callback and ctx/userData definitions ( #2281 )
2023-12-18 23:16:54 +01:00
Ivan FB
b34f5d3117
chore: archive - move error to trace level when insert row fails ( #2283 )
...
* archive: move error to trace level when insert row fails
That is helpful to prevent the node to spam the logs when it shares
connection to the same Postgres database with other nodes, in
which case the following log appears too much:
topics="waku archive" tid=1 file=archive.nim:113 err="error in
runStmt: error in dbConnQueryPrepared calling waitQueryToFinish: error
in query: ERROR: duplicate key value violates unique constraint
"messageindex" DETAIL: Key
(messagehash)=(88f4ee115eef6f233a7dceaf975f03946e18666adda877e38d61be98add934e8)
already exists. "
2023-12-15 18:58:35 +01:00
gabrielmer
e19996951b
chore: including content topics on FilterSubscribeRequest logs ( #2295 )
2023-12-15 14:18:12 +01:00
Ivan FB
45bc8add32
relay: add trace logs in case of msg validation rejection ( #2285 )
2023-12-15 13:34:30 +01:00
Ivan FB
d7e8477b3f
libwaku: avoid using waku_init. Only use waku_new to create node and context ( #2282 )
2023-12-15 13:32:12 +01:00
Alvaro Revuelta
43ffd1371b
fix: make rln rate limit spec compliant ( #2294 )
2023-12-15 10:26:17 +01:00
Ivan FB
2b434d7e8d
bug fix: update num-msgs archive metrics every minute and not only at the beginning ( #2287 )
2023-12-14 17:00:13 +01:00
Ivan FB
f191b79f28
postgres_driver.nim: restrict getMessages prepared stmt to query with 1 content topic ( #2296 )
...
Before this commit, the following execution of a prepared statement
returned nothing even though the database had 2 rows to be returned:
nwaku-db-1 | 2023-12-14 12:55:17.575 UTC [73] LOG: execute SelectWithoutCursorAsc: SELECT storedAt, contentTopic, payload, pubsubTopic, version, timestamp, id FROM messages
nwaku-db-1 | WHERE contentTopic IN ($1) AND
nwaku-db-1 | pubsubTopic = $2 AND
nwaku-db-1 | storedAt >= $3 AND
nwaku-db-1 | storedAt <= $4
nwaku-db-1 | ORDER BY storedAt ASC LIMIT $5;
nwaku-db-1 | 2023-12-14 12:55:17.575 UTC [73] DETAIL: parameters: $1 =
'my/ctopic/1,my/ctopic/2', $2 = '/waku/2/default-waku/proto', $3 = '1702552968570786800', $4 = '1702552968585347557', $5 = '101'
The reason why it is not returning anything is that the 'IN' statement doesn't work when using prepared statements with multiple items. It only works when the 'IN' content, i.e. $1, contains one single item.
2023-12-14 15:37:12 +01:00
Ivan FB
7c692cc313
chore: vendor bump for 0.23.0 ( #2274 )
...
* on_chain/group_manager: use .async: (raises:[Exception]).
* bump nim-dnsdisc
* update nim-chronos to the latest state
* chat2.nim: catch any possible exception when stopping
* chat2bridge.nim: make it to compile after vendor bump
* ValidIpAddress (deprecated) -> IpAddress
* vendor/nim-libp2p additional bump
* libwaku: adapt to vendor bump
* testlib/wakunode.nim: adapt to vendor bump (ValidIpAddress -> IpAddress)
* waku_node: avoid throwing any exception from stop*(node: WakuNode)
* test_confutils_envvar.nim: ValidIpAddress -> IpAddress
* test_jsonrpc_store: capture exception
* test_rln*: handling exceptions
* adaptation to make test_rln_* to work properly
* signature enhancement of group_manager methods
2023-12-14 07:16:39 +01:00
Ivan FB
ac3a3737de
chore: peer_manager.nim - reduce logs from debug to trace ( #2279 )
2023-12-12 16:00:18 +01:00
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
Ivan FB
de11e19a9f
waku_thread_response.nim: use correct alloc() proc to allocate response correctly ( #2277 )
2023-12-11 08:50:03 +01:00
Ivan FB
2a03416f47
chore: Cbindings allow mounting the Store protocol from libwaku ( #2276 )
...
* libwaku: add changes to mount store in self-node
* libwaku: remove unnecessary code for store
2023-12-11 08:49:13 +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
Vaclav Pavlin
a0eb05ea19
fix(dockerfile): update dockerignore and base image ( #2262 )
2023-12-01 11:35:50 +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
gabrielmer
3030aa81e7
chore: creating prepare_release template ( #2225 )
2023-11-30 10:29:26 +01:00
Alexis Pentori
29e66c8dd9
feat: setting image deployment to harbor registry
...
Adding variable to push image to specific Registry
Changing image owner name to `waku-org` to match Github Repository naming
Signed-off-by: Alexis Pentori <alexis@status.im>
2023-11-29 11:54:17 +01:00
Simon-Pierre Vivier
ffc39e1f55
chore(rest): refactor message cache ( #2221 )
2023-11-28 07:21:41 -05:00
gabrielmer
047e493dc9
chore: updating nim-json-serialization dependency ( #2248 )
2023-11-28 11:47:21 +01:00
Álex Cabeza Romero
a5a85981c5
chore(store-archive): Remove duplicated code ( #2234 )
...
* Refactor utility functions for store and archive test.
2023-11-27 18:33:27 +01: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
Prem Chaitanya Prathi
76fa222816
fix: admin REST API to be enabled only if config is set ( #2218 )
2023-11-24 14:43:20 +05:30
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
Aaryamann Challani
6926af47e2
chore: update docs for rln-keystore-generator ( #2210 )
2023-11-21 16:43:15 +03: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
69480731ad
fix(relay): Failing protocol tests ( #2224 )
...
* Fix failing relay protocol tests.
2023-11-16 16:18:50 +01:00
Álex Cabeza Romero
f9d31860bf
fix(tests): Compilation failure fix ( #2222 )
...
* Add missing required keywords.
2023-11-15 18:10:10 +01:00
Álex Cabeza Romero
3e669e2a1b
test(relay-filter): cleanup ( #2138 )
...
* Fix some tests.
* Clean legacy tests.
* Fix imports.
2023-11-15 16:15:38 +01:00