NagyZoltanPeter and Ivan Folgueira Bande
d7cd41d78c
feat: Rest endoint /health for rln ( #2011 )
...
* Rest endoint /health added
* Remove dev-debug echo
* Changed not ready message
* Update waku/node/rest/health/handlers.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* Various fixes on PR foundings, added comments
---------
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
2023-09-08 11:19:47 +02:00
Ivan Folgueira Bande
399c2bca1e
Adding healtcheck and reconnection mechanism to the postgres archive driver ( #1997 )
...
It starts an asynchronous infinite task that checks the connectivity
with the database. In case of error, the postgres_healthcheck task
tries to reconnect for a while, and if it determines that the connection
cannot be resumed, then it invokes a callback indicating that
situation. For the case of the `wakunode2` app, this callback
quits the application itself and adds a log trace indicating
the connectivity issue with the database.
2023-09-06 19:16:37 +02:00
Aaryamann Challani
7c4ce7361b
chore(rln-relay): clean up nullifier table every MaxEpochGap ( #1994 )
2023-09-06 13:48:02 +05:30
Aaryamann Challani and Ivan Folgueira Bande
507966c844
feat(relay): ordered validator execution ( #1966 )
...
* feat(relay): ordered validator execution
* fix: make more readable
* test: ignore accepts only
* fix: idempotent .subscribe
* fix(rln-relay): make validators private
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* fix: include comments, unsubscribe behaviour
* fix: compilation
---------
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
2023-09-05 14:35:07 +05:30
Aaryamann Challani
8b34c4a4e6
chore(rln-relay): use the only key from keystore if only 1 exists ( #1984 )
...
* chore(rln-relay): use the only key from keystore if only 1 exists
* fix: convert iterator to seq and then index into it
2023-09-04 15:46:44 +05:30
Simon-Pierre Vivier
d4decc2fc5
fix: --topic should be ignore when using --pubsub-topic or --content-topic ( #1977 )
2023-08-31 16:13:45 -04:00
Ivan Folgueira Bande
94605f40b2
external_config.nim: cleanup 'store-resume-peer' attribute ( #1970 )
2023-08-31 17:29:05 +02:00
Aaryamann Challani and Ivan Folgueira Bande
eeff44c9f0
fix(rln-relay): modify keystore credentials logic ( #1956 )
...
* fix(rln-relay): modify keystore credentials logic
fix: bump version
* Update waku/waku_rln_relay/group_manager/on_chain/group_manager.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* Update tests/waku_rln_relay/test_waku_rln_relay.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* Update waku/waku_keystore/protocol_types.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* fix: greatly improve error handling
* fix: display proc and appropriate assert
---------
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
2023-08-29 17:46:21 +05:30
Simon-Pierre Vivier
0f0031eba9
feat(discv5): topic subscriptions update discv5 filter predicate ( #1918 )
2023-08-23 11:50:59 -04:00
Simon-Pierre Vivier
a3538599aa
feat: topic subscriptions updates discv5 ENR ( #1875 )
2023-08-23 09:53:17 -04:00
Aaryamann Challani
de0a40972b
fix(rln-relay): waitFor startup, otherwise valid proofs will be marked invalid ( #1920 )
2023-08-22 17:47:06 +05:30
Aaryamann Challani
a2519906c6
fix(rln-relay): remove registration capability ( #1916 )
2023-08-22 11:49:18 +05:30
Alvaro Revuelta
6320ffb28a
chore(rln): run rln in all relay pubsubtopics + remove cli flags ( #1917 )
2023-08-21 08:55:34 +02:00
Simon-Pierre Vivier
51fee9d744
feat: update various protocols to autoshard ( #1857 )
...
* feat: update FILTER & LIGHTPUSH to autoshard
2023-08-17 08:11:18 -04:00
richΛrd
8c5ca6c1ab
fix: no enr record in chat2 ( #1907 )
2023-08-14 20:43:10 -04:00
Simon-Pierre Vivier
1be8171fde
fix: bring back default topic in config ( #1902 )
...
* fix: bring back default topic in config
* fix
* Fix a bug
* Fix enr creation
2023-08-11 17:28:24 +02:00
Vaclav Pavlin
23852c4938
fix(wakucanary): add missing return on timeout ( #1901 )
2023-08-11 10:00:19 +02:00
Hanno Cornelius
5e2e1b6bd0
chore: remove references to v2 ( #1898 )
...
* chore: remove references to v2
* fix: lingering rln-relay import path
2023-08-09 18:11:50 +01:00
Hanno Cornelius
0acf71176b
chore: remove Waku v1 and wakubridge code ( #1874 )
...
* chore: remove v1 code
* chore: deprecate support for v1 compatibility from JSON-RPC API
* chore: remove v1 tests from JSON-RPC suite
* chore: remove wakubridge code
* chore: remove v1 compatibility functions
* chore: remove support for v1 payloads from chat2 app
* chore: remove v1 from CI processes
* fix: lingering references to private API functions
* fix: remove v1 compat from chat2
* fix: some more lingering references in tests
2023-08-07 15:11:46 +01:00
NagyZoltanPeter
cdc5423a86
feat: Rest API interface for legacy (v1) filter service. ( #1851 )
...
* Added Rest API interface for legacy (v1) filter service with tests.
2023-08-04 11:34:22 +02:00
Vaclav Pavlin
42d7105530
fix(wakucanary): add enr record to builder ( #1882 )
2023-08-04 07:22:31 +02:00
Simon-Pierre Vivier
ac8ab37e7b
feat: autosharding content topics in config ( #1856 )
...
- added content topic to config.
- updated ENR building to include content topics.
2023-08-01 16:01:44 -04:00
Simon-Pierre Vivier
51dee4f96c
feat: autosharding core algorithm ( #1854 )
...
- basic rendezvous hashing
- content topic parsing
- sharding config
- tests
2023-08-01 09:05:16 -04:00
Aaryamann Challani
baaa9c7ec2
chore(rln-relay): verify proofs based on bandwidth usage ( #1844 )
...
* chore(rln-relay): Verify proofs based on bandwidth usage
* fix(rln-relay): make default threshold 0, for backwards compat
* fix(rln-relay): add unit test for bandwidth cutoff
* fix(rln-relay): rlnRelayBandwidthTreshold option
2023-07-07 17:28:37 +05:30
Alvaro Revuelta
fb74863f32
feat: limit relay connections below max conns ( #1813 )
2023-07-04 13:31:18 +02:00
Ivan Folgueira Bande and SionoiS
94db4b081f
chore(refactor): Move record creation & fix libwaku compilation ( #1833 )
...
* Move record creation & fix libwaku
* app,external_config,internal_config,libwaku,sharding: refactorgin to make it compile
---------
Co-authored-by: SionoiS <simvivier@status.im >
2023-06-29 21:59:53 +02:00
Ivan Folgueira Bande
b5920a5c24
refactor of internal_config to avoid passing a 'WakuNodeConf' item ( #1832 )
...
This change is needed so that the `libwaku.nim` code gets simpler. The
`libwaku.nim` can't import the 'WakuNodeConf' type because this is
related to the wakunode2 app, and the library shouldn't know about it.
2023-06-29 11:01:14 +02:00
Simon-Pierre Vivier
ea5af1a935
chore: discv5 re-org clean-up ( #1823 )
...
- Remove discv5 from node and it's builder
- Require a record to init a node (was previously using discv5 record).
- Fix various tests that assumed nodes with discv5.
- Fix ENR creation
- Fix wakubridge
- Fix networkmonitor
2023-06-28 08:57:10 -04:00
Ivan Folgueira Bande
a7c775da65
fix(discv5): Fixing issue that prevented the wakunode2 from starting ( #1829 )
...
* Fixing issue that prevented the wakunode2 from starting
The issue was introduced in PR#1818.
Before this commit, the `wakunode2` app crashed with the next error:
ERR 2023-06-27 15:57:27.268+00:00 5/7 Starting node and protocols failed
topics="wakunode main" tid=1 file=wakunode2.nim:92 error="failed to
start waku discovery v5: "
* fix tests accordingly
* publisher.nim, subscriber.nim: fix
2023-06-27 15:16:59 -04:00
Simon-Pierre Vivier
00a818b96c
chore: move discv5 out of node. ( #1818 )
...
- Refactor discv5 start, stop & loop.
- Fix tests.
2023-06-27 09:50:11 -04:00
Ivan Folgueira Bande
32ba79a920
refactor(archive): Moving waku archive logic from app.nim to the archive module ( #1817 )
...
* Refactoring the Waku Archive. Simplifying the app.nim
This change is needed to accommodate the further PRs where we will integrate Postgres in `wakunode2`.
2023-06-27 13:24:31 +02:00
Alvaro Revuelta
a67bf22e61
chore: add peer manager config to builder ( #1816 )
2023-06-23 15:30:28 +02:00
Simon-Pierre Vivier
887a5c76b2
chore: discv5 re-org setup ( #1815 )
...
Key, netconfig, enr are created at App initialization and config files has been renamed.
2023-06-22 16:58:14 -04:00
Ivan Folgueira Bande
12c6fd3df7
refactor(databases): Creation of the databases folder to keep the logic for sqlite and postgres ( #1811 )
...
* Refactoring in sqlite and postgres. Creation of the databases folder.
2023-06-22 11:27:40 +02:00
Ivan Folgueira Bande
c25c94cdd8
Deprecation of the 'topics' param ( #1806 )
2023-06-20 13:14:17 +02:00
Simon-Pierre Vivier
e5bca6ab29
sharded topic validation & ENR update ( #1795 )
...
Add sharded topic validation and update the node ENR accordingly.
2023-06-19 18:16:25 -04:00
Aaryamann Challani
0ed1070cef
feat(rln-relay): resume onchain sync from persisted tree db ( #1805 )
...
* feat(rln-relay): resume onchain sync from persisted tree db
* chore(rln-relay): bump zerokit
2023-06-19 15:21:18 +05:30
Aaryamann Challani and Ivan Folgueira Bande
8fc6977f0b
chore(rln-relay): pass in the path to the tree db ( #1782 )
...
* chore(rln-relay): pass in the path to the tree db
* fix(rln-relay): address visibility
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* fix(rln-relay): make db used more explicit
* fix(rln-relay): reduce visibility
---------
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
2023-06-08 17:22:21 +05:30
Aaryamann Challani
107cb8119f
feat(rln-relay): pass in index to keystore credentials ( #1777 )
...
* feat(rln-relay): pass in index to keystore credentials
* fix(rln-relay): s/MembershipIndex/uint
2023-06-06 23:13:05 +05:30
Alvaro Revuelta
7cc3239466
feat(networking): integrate gossipsub scoring ( #1769 )
2023-06-06 19:28:47 +02:00
5ebf095477
feat(discv5): added find random nodes with predicate ( #1762 ) ( #1763 )
...
* feat(discv5): added find random nodes with predicate (#1762 )
Co-authored-by: Lorenzo Delgado <lnsdev@proton.me >
* chore: play around with sleep times on tests
* chore: simplify flaky tests
* chore: update waku/v2/node/waku_node.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* chore: update tests/v2/test_waku_discv5.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
* chore: update examples/v2/subscriber.nim
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
---------
Co-authored-by: Lorenzo Delgado <lnsdev@proton.me >
Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com >
2023-06-06 16:36:20 +02:00
Vaclav Pavlin
8bacfd0ba4
feat(wakunode2): enable libp2p rendezvous protocol by default ( #1770 )
2023-06-01 21:43:10 +02:00
Ivan Folgueira Bande
7c52ba44a4
feat(postgresql): 1st commit to async sql (waku_archive/driver...) ( #1755 )
2023-05-25 17:34:34 +02:00
Aaryamann Challani
3cb03c9341
fix(rln-relay): keystore usage ( #1750 )
...
* fix(rln-relay): keystore usage
* docs(rln-relay): explicit keystore usage
2023-05-22 22:06:55 +05:30
Aaryamann Challani
af9e6bb757
chore(rln-relay): docs and config update for testnet 3 ( #1738 )
...
* chore(rln-relay): docs and config update for testnet 3
* chore(rln-relay): update more docs
2023-05-19 18:22:01 +05:30
Ivan Folgueira Bande
b9ea435acc
refactor: proper use of setupNat ( #1740 )
...
Notice that I had to adapt to use 'rlpx_connected_peers' instead
of 'connected_peers' in 'wakunode1.nim' because due to the update
of the 'vendor/nim-eth', which adds the dependency-break with
'confutils' but also includes another changes.
Aside note: we cannot have 'confutils' dependency in 'nim-eth' because
that will prevent the generation of any waku dynamic library.
2023-05-17 18:32:53 +02:00
Ivan Folgueira Bande
581e94dc66
fix: wakunode2 config. adding new 'topic' config parameter. ( #1727 )
...
* wakunode2 config. adding new 'topic' config parameter.
This new parameter can be repeated and we are starting to deprecate the
parameter 'topics', that expected to receive a space-separated list of
pubsubtopic to subscribe to.
* Appying PR suggestions
2023-05-12 13:37:54 +02:00
Alvaro Revuelta
5a8fcffa41
chore: add timestamp and ephemeral for opt-in dos validator ( #1713 )
2023-05-05 10:12:49 +02:00
Alvaro Revuelta
8951ec6119
chore: add test vectors dos protection validator ( #1711 )
2023-05-04 15:38:52 +02:00
Alvaro Revuelta
9941565236
chore: add validator for dos protec metrics and move to app ( #1704 )
2023-05-02 16:20:38 +02:00