780 Commits

Author SHA1 Message Date
stubbsta
0b15fbef27 Verify paths 2025-06-12 14:14:59 +02:00
stubbsta
ed7c75805a Debug for forge command 2025-06-12 14:14:59 +02:00
stubbsta
0753d2db9d Add lock to tests for rln_group_manager_onchain 2025-06-12 14:14:59 +02:00
stubbsta
f8b9f81bbb Fix anvil process call to null 2025-06-12 14:14:59 +02:00
stubbsta
17cf587ce6 Add additional checks for stopAnvil process 2025-06-12 14:14:59 +02:00
stubbsta
08f87c570a Remove unused Anvil options 2025-06-12 14:14:59 +02:00
stubbsta
adc78e3da9 Simplify token approval and balance check 2025-06-12 14:14:59 +02:00
stubbsta
1d5b07fb91 Use absolute path for waku-rlnv2-contract 2025-06-12 14:14:59 +02:00
stubbsta
30406542fe Improve handling of Result return value 2025-06-12 14:14:59 +02:00
stubbsta
ecd56c6bf4 Code cleanup and change some debug logging to trace 2025-06-12 14:14:58 +02:00
stubbsta
ffcfb95e02 Minor updates, error messages etc 2025-06-12 14:14:58 +02:00
stubbsta
da4946f59b Fix linting 2025-06-12 14:14:58 +02:00
stubbsta
62e7b145fa Fix error message formatting 2025-06-12 14:14:58 +02:00
stubbsta
c1fc24d4af Improve error logs 2025-06-12 14:14:58 +02:00
stubbsta
0acb393c3b Fix formatting 2025-06-12 14:14:58 +02:00
stubbsta
6fc1f69220 RLN Tests updated 2025-06-12 14:14:58 +02:00
stubbsta
05b87a296e Fix RLN test for new contract 2025-06-12 14:14:58 +02:00
stubbsta
8879703801 Rework RLN tests WIP 2025-06-12 14:14:58 +02:00
stubbsta
8adbeed5bd Clean up code and error handling 2025-06-12 14:14:58 +02:00
stubbsta
152bd250b0 Update rln tests with usermessagelimit new minimum 2025-06-12 14:14:58 +02:00
stubbsta
2aa0a64349 first implementation of token minting and approval 2025-06-12 14:14:58 +02:00
stubbsta
cba55f6fb5 Move TestToken deployment to own proc 2025-06-12 14:14:58 +02:00
stubbsta
5fe1c8a67f Clean up output of forge script command, debug logs to trace, warn to error 2025-06-12 14:14:58 +02:00
stubbsta
ecb07fed54 Add RlnV2 contract deployment using forge scripts 2025-06-12 14:14:58 +02:00
stubbsta
78239b4e99 Revert keystore credentials back to using LE 2025-06-12 14:14:31 +02:00
stubbsta
badbc07ffe Update all keystore credentials to use BE format 2025-06-12 14:14:30 +02:00
Ivan FB
336fbf8b64 fix: relay unsubscribe (#3422)
* waku_relay protocol fix unsubscribe and remove topic validator
* simplify subscription and avoid unneeded code
* tests adaptations
* call wakuRelay.subscribe only in one place within waku_node
2025-06-02 22:02:49 +02:00
NagyZoltanPeter
a39bcff6dc feat: Extend node /health REST endpoint with all protocol's state (#3419)
* Extend ndoe /health REST endpoint with all protocol's state

* Added check for Rendezvous peers availability

* Fine tune filter, added client protocols to health report

* Fix /health endpoint test

* Add explanatory description for state NOT_READY

* Fix formattings

* Apply suggestions from code review

Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>

* Apply code style changes and extended test

* Fix formatting

---------

Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2025-06-02 17:21:09 +02:00
gabrielmer
5e22ea18b6 chore: don't return error on double relay subscription/unsubscription (#3429) 2025-05-29 12:05:48 +02:00
Ivan FB
9f68c83fed chore: bump dependencies for v0.36 (#3410)
* properly pass userMessageLimit to OnchainGroupManager
* waku.nimble 2.2.4 Nim compiler
* rm stew/shims/net import
* change ValidIpAddress.init with parseIpAddress
* fix serialize for zerokit
* group_manager: separate if statements
* protocol_types: add encode UInt32 with zeros up to 32 bytes
* windows build: skip libunwind build and rm libunwind.a inlcusion step
* bump nph to overcome the compilation issues with 2.2.x
* bump nim-libp2p to v1.10.1
2025-05-26 21:58:02 +02:00
Darshan K
39e65dea28 fix: timestamp based validation (#3406) 2025-05-26 17:56:29 +05:30
Ivan FB
42ab866f2c chore: allow multiple rln eth clients (#3402)
* use of multiple Eth clients instead of just one
* config_chat2 enhance param comment
* group_manager: raise exception if could not connect to any of the eth clients
2025-05-12 10:57:13 +02:00
Darshan K
d86babac3a feat: deprecate sync / local merkle tree (#3312) 2025-05-09 05:37:58 +05:30
fryorcraken
cc66c7fe78 chore!: separate internal and CLI configurations (#3357)
Split `WakuNodeConfig` object for better separation of concerns and to introduce a tree-like structure to configuration.

* fix: ensure twn cluster conf is still applied when clusterId=1
* test: remove usage of `WakuNodeConf`
* Remove macro, split builder files, remove wakunodeconf from tests
* rm network_conf_builder module as it is not used

---------

Co-authored-by: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com>
Co-authored-by: Ivan Folgueira Bande <ivansete@status.im>
2025-05-07 23:05:35 +02:00
Ivan FB
6bc05efc02 chore: Avoid double relay subscription (#3396)
* make sure subscribe once to every topic in waku_node
* start suggest use of removeValidator in waku_relay/protocol. Commented until libp2p updated.
2025-05-05 22:57:20 +02:00
NagyZoltanPeter
98c3979119 chore: return all peers from rest admin (#3395)
* Updated version of getting peers by /admin endpoints
2025-04-25 15:36:41 +02:00
Ivan FB
2d6e5ef9ad chore: rln_relay simplify code a little (#3392) 2025-04-25 14:52:37 +02:00
Simon-Pierre Vivier
0c63ce4e9b feat: refactor waku sync DOS protection (#3391) 2025-04-24 09:07:21 -04:00
NagyZoltanPeter
8394c15a1a fix: bad HttpCode conversion, add missing lightpush v3 rest api tests (#3389)
* Fix bad HttpCode conversion, add missing lightpush v3 rest api tests
2025-04-24 08:36:30 +02:00
NagyZoltanPeter
ab8a30d3d6 chore: extended /admin/v1 RESP API with different option to look at current connected/relay/mesh state of the node (#3382)
* Extended /admin/v1 RESP API with different option to look at current connected/relay/mesh state of the node
* Added score information for peer info retrievals
2025-04-24 08:36:02 +02:00
Ivan FB
5ae526ce4f chore: Timestamp now in publish (#3373)
* Ensure timestamp is always set in WakuMessage when publishing
2025-04-17 13:03:56 +02:00
Miran
ed0474ade3 chore: fix unused and deprecated imports (#3368) 2025-04-11 18:20:23 +03:00
Ivan FB
3098b117d3 chore: skip two flaky tests (#3364) 2025-04-10 00:28:25 +02:00
Ivan FB
75b8838fbf chore: retrieve protocols in new added peer from discv5 (#3354)
* add new unit test to validate that any peer can be retrieved
* add new discv5 test and better peer store management
* wakuPeerStore -> switch.peerStore
* simplify waku_peer_store, better logs and peer_manager enhancements
2025-04-07 12:24:03 +02:00
fryorcraken
63cff2ab42 test: fix preset tests (#3351) 2025-04-01 11:57:30 +02:00
fryorcraken
58f76ce467 feat: introduce preset option (#3346)
* feat: introduce `preset` option

Overwriting config from cluster-id will be deprecated as a second step.

* doc: improve preset doc

* Change `default` preset to `twn`
2025-04-01 09:28:18 +11:00
NagyZoltanPeter
fe8327627e Make /debug endpoints /version and /info available as root (#3333) 2025-03-27 11:56:44 +01:00
Simon-Pierre Vivier
7dbc1fe061 fix: apply latest nph formating (#3334) 2025-03-19 11:30:47 -04:00
NagyZoltanPeter
8b927b92d2 fix:lightppush v3 not returning relayed peers count (#3329)
* Fixing lightpush publish logs stated it was legacy lightpush, also fix on wrong mounted protocol check.
* Fix lightpush v3 success report did not embed relayed peer count
* Fix test that missed the case of non returning relayed peers
2025-03-18 09:36:58 +01:00
Simon-Pierre Vivier
bf1a0dc42c fix: waku sync 2.0 codecs ENR support (#3326) 2025-03-14 12:01:11 -04:00