Ivan FB
294dd03c45
chore: libwaku - better error handling and better waku thread destroy handling ( #3167 )
2024-11-08 14:59:02 +07:00
richΛrd
3cb8ebdd8f
refactor(libwaku): allow several multiaddresses for a single peer in store queries ( #3171 )
...
* fix: parameter name
* refactor: allow multiple addresses for a peer in a store query
2024-11-08 14:36:16 +07:00
gabrielmer
507b1fc4d9
feat: adding waku_dial_peer and get_connected_peers to libwaku ( #3149 )
2024-10-30 16:26:33 +02:00
gabrielmer
5c7720c24d
fixing libwaku's dns discovery multiaddress generation ( #3155 )
2024-10-29 11:39:38 +02:00
richΛrd
3665991a65
chore: support ping with multiple multiaddresses and close stream ( #3154 )
2024-10-28 15:51:07 -04:00
Ivan FB
cfde7eea82
chore: Circuit relay ( #3112 )
...
* undo apt install libpcre (not circuit-relay related.)
* nat.nim: protect against possible exceptions when calling getExternalIP
* new external CLI argument, isRelayClient
* waku factory change to mount circuit hop proto by default
* waku_node: move autonat_service to a separate module
2024-10-28 09:17:46 +01:00
richΛrd
de11e576f4
feat(libwaku): ping peer ( #3144 )
2024-10-24 09:07:08 -04:00
gabrielmer
76606421a2
fix: peer exchange libwaku response handling ( #3141 )
2024-10-24 10:32:57 +03:00
gabrielmer
c5a825e206
chore: add to libwaku peer id retrieval proc ( #3124 )
2024-10-17 19:13:00 +03:00
gabrielmer
3321fd05e7
returning seqs in libwaku as comma separated strings ( #3121 )
2024-10-16 14:07:23 +03:00
gabrielmer
25da810257
chore: adding to libwaku dial and disconnect by peerIds ( #3111 )
2024-10-15 15:32:02 +03:00
gabrielmer
ed0ee5be20
chore: improving get_peer_ids_by_protocol by returning the available protocols of connected peers ( #3109 )
2024-10-11 13:58:29 +03:00
gabrielmer
78759f6e52
using cstring instead of nim strings to avoid segfault ( #3108 )
2024-10-11 13:57:55 +03:00
gabrielmer
37edaf6264
fix: returning peerIds in base 64 ( #3105 )
2024-10-10 16:53:30 +03:00
richΛrd
c861fa9f75
chore: remove warnings ( #3106 )
...
- Removes deprecation and unused import warnings for libwaku
- Removes unused imports
- Adds .base. pragma to `SubscriptionObserver.onSubscribe`
- Uses casting for uint to enums conversions
- Bumps nim-chronicles
2024-10-10 08:40:09 -04:00
gabrielmer
2e6c299d36
fix: changing libwaku's error handling format ( #3093 )
2024-10-09 15:12:45 +03:00
gabrielmer
4aabd64b40
fix libwaku's returned enr string ( #3097 )
2024-10-08 17:22:49 +03:00
gabrielmer
713aa66a63
adding missing error handling in libwaku ( #3084 )
2024-10-03 00:13:42 +03:00
gabrielmer
d8e6a5cda7
Adding error logs for failed libwaku operations ( #3067 )
2024-10-01 12:23:04 +03:00
Darshan K
729e63f53d
refactor: wrap peer store ( #3051 )
...
Encapsulate peerstore with wakupeerstore
2024-09-27 18:16:46 +05:30
Ivan FB
fd83b42faa
chore: extending store metrics ( #3042 )
...
* adding query_metrics module
* update fleet-dashboard with new store panels for better timing insight
2024-09-20 13:23:53 +02:00
NagyZoltanPeter
0a7f16a332
chore: rate limit peer exchange protocol, enhanced response status in RPC ( #3035 )
...
* Enhanced peer-ex protocol - added rate limiting, added response status and desc to the rpc
* Better error result handling for PeerEx request, adjusted tests
* Refactored RateLimit configuration option for better CLI UX - now possible to set separate limits per protocol. Adjusted mountings. Added and adjusted tests
* Fix libwaku due to changes of error return type of fetchPeerExchangePeers
* Fix rate limit setting tests due to changed defaults
* Introduce new gauge to help dasboard effectively show current rate limit applied for protocol
* Adjust timeing in filter rate limit test to let macos CI test run ok.
* Address review findings, namings, error logs, removed left-overs
* Changes to reflect latest spec agreement and changes. PeerExchange RPC is changed the now respond structure will contain status_code and status_desc.
2024-09-18 15:58:07 +02:00
Ivan FB
1713f56235
chore: libwaku reduce repetitive code by adding a template handling resp returns ( #3032 )
2024-09-11 18:11:59 +02:00
Ivan FB
5ea1cf0cf3
chore: libwaku - extending the library with peer_manager and peer_exchange features ( #3026 )
...
* libwaku: get peerids by protocol and peer exchange request
2024-09-11 10:13:54 +02:00
Ivan FB
6c890de4a8
chore: Bump dependencies for v0.33 ( #3017 )
2024-09-09 10:45:14 +02:00
Ivan FB
19feb6bd58
libwaku better params validation and a bit more clarity ( #3005 )
2024-08-29 22:57:23 +02:00
Ivan FB
bd2cf99d7e
libwaku: exposing more features ( #3003 )
...
- Allow to start or store discv5
- Expose lightpush request operation
- Expose list of connected and mesh peers
- Expose store client
2024-08-29 14:29:02 +02:00
Ivan FB
1ff9f1dd67
chore: libwaku retrieve my enr and adapt golang example ( #2987 )
2024-08-22 12:01:14 +02:00
Ivan FB
fd6a71cdd7
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
richΛrd
cbaefeb3ea
fix: use `when` instead of `if` for adding soname on linux ( #2721 )
2024-05-23 10:05:53 -04:00
richΛrd
1e2aa57a26
chore: android support ( #2554 )
2024-05-21 21:00:22 -04:00
Ivan FB
7464684842
chore: Discovery in libwaku ( #2711 )
...
* cwaku_example: add discoveryv5-discovery bool option
* libwaku: implement discovery capabilities
* node_lifecycle_request.nim: better control of possible errors when parsing config
2024-05-21 18:37:50 +02:00
Ivan FB
5ee4cba534
simple library cleanup of unused imports and duplicated code ( #2710 )
2024-05-18 15:04:04 +02:00
Ivan FB
840e012294
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
gabrielmer
be5471c6f3
feat: adding json string support to bindings config ( #2685 )
2024-05-10 10:56:17 +02:00
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
Ivan FB
1ba9df4be0
refactor: move app.nim and networks_config.nim to waku/factory ( #2608 )
2024-04-19 20:03:36 +02:00
richΛrd
3d752b11b9
fix(c-bindings): rln credential path key ( #2564 )
2024-04-04 02:41:14 -04:00
richΛrd
2aa835e3bf
feat(c-bindings): rln relay ( #2544 )
2024-03-27 10:08:53 -04:00
Alvaro Revuelta
47ad0fb001
fix: fix regresion + remove deprecated flag ( #2556 )
2024-03-26 19:44:55 +01:00
richΛrd
6d0f6d822c
refactor(c-bindings): node initialization ( #2547 )
2024-03-26 09:10:25 -04:00
Ivan FB
3ba4378cbe
Generic re-style with nph 0.5.1 ( #2396 )
2024-03-16 00:08:47 +01:00
richΛrd
8341864d30
feat(c-bindings): add function to dealloc nodes ( #2499 )
2024-03-07 13:53:03 -04:00
gabrielmer
361fe2cdc7
chore: moving node initialization code to node_factory.nim ( #2479 )
2024-03-02 18:59:53 -06:00
Ivan FB
560f949a8b
chore: Postgres migrations ( #2477 )
...
* Add postgres_driver/migrations.nim
* Postgres and archive logic adaptation to the migration implementation
* libwaku: adapt node_lifecycle_request.nim to migration refactoring
* test_app.nim: add more detail for test that only fails in CI
* postgres migrations: store the migration scripts inside the resulting wakunode binary instead of external .sql files.
2024-03-01 12:05:27 +01:00
richΛrd
045091a9f2
fix: return message id on `waku_relay_publish` ( #2485 )
...
* fix: return message id on `waku_relay_publish`
* fix: remove unneeded cast and handle 0 len seqs
* chore: rename messageId to messageHash
2024-02-29 20:58:35 -04:00
Ivan FB
7aea145efe
chore: bindings return multiaddress array ( #2461 )
...
* waku_example.c: adapt signature to new parameter 'void* userData'
* libwaku: add new DEBUG request handler to retrieve the list of listened multiaddresses
* waku_example.c: use example the new 'waku_listen_addresses'
* add debug_node_request.nim file
2024-02-21 12:06:05 +01:00
richΛrd
d01585e9fa
fix(bindings): base64 payload and key for content topic ( #2435 )
...
* fix(bindings): base64 payload and key for content topic
* fix(bindings): store userData for event callback
* fix(bindings): json message serialization
* fix(bindings): add messageHash to the event callback
* fix(bindings): add meta field
* refactor(bindings): simplify error handling
* fix: handle undefined keys
2024-02-20 16:00:03 -04:00
richΛrd
56ff30ca75
feat(bindings): generate a random private key ( #2446 )
2024-02-20 11:18:03 -04:00
Aaryamann Challani
22026b7e89
fix(rln-relay): graceful shutdown with non-zero exit code ( #2429 )
...
* fix(rln-relay): graceful shutdown with non-zero exit code
* fix: missed args
* fix: exception str
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
* fix: remove old comment
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-02-15 16:55:08 +05:30