1065 Commits

Author SHA1 Message Date
Ivan Folgueira Bande
bc416ffc8d Tiny fix in. setting 'os' instead of 'platform' (#1728) 2023-05-16 09:59:48 +02:00
Vaclav Pavlin
b1af15a1e0 refactor(ci): cache all of submodules/deps to speed up build time (#1731) 2023-05-16 09:11:41 +02:00
Aaryamann Challani
3e8adb3984 fix(ci): remove target flag from docker command (#1725)
* fix(ci): remove target flag from docker command

* fix(ci): add additional debug flag to rollout debug images to fleets
2023-05-15 21:55:25 +05:30
Ivan Folgueira Bande
2f1eb2c0ca feat(cbindings): first commit - waku relay (#1632) (#1714)
* feat(cbindings): first commit - waku relay (#1632)

* test_app.nim: fix compilation issue. App.init(..) -> App.new(..)

* Simplifying library name (libwaku) and standardizing function names (waku_*)

* Proper wrapper of the waku_node API and creation of the libwaku.a

* Rolling back changes that are not needed

* Rolling back changes that are out of the scope of this task

* wakunode.nim: Removing unnecessary import

* Aplying PR suggestions

* Renaming 'waku.h' -> 'libwaku.h'

* Use of 'isNil' instead of '== nil'

* libwaku.nim: explicitly setting waku_poll() as gcsafe
2023-05-12 18:08:41 +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
Hanno Cornelius
573cd548ef feat: example using filter and lightpush (#1720)
* feat: add filter-lightpush example

* chore: examples/v2/filter_subscriber.nim

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

* chore: update examples/v2/filter_subscriber.nim

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

---------

Co-authored-by: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com>
2023-05-12 12:35:26 +02:00
Aaryamann Challani
fecfcb53a1 chore(rln-relay): update args to contract (#1724)
* chore(rln-relay): update args to contract

* fix(rln-relay): update membership contract code

* fix: bytecode
2023-05-11 19:30:26 +05:30
Alvaro Revuelta
df8ca7878d fix: streams was used instead of connections (#1722) 2023-05-10 15:28:00 +02:00
Aaryamann Challani
757250050f chore(rln-relay): use new config for ffi (#1718)
* chore(rln-relay): use new config for ffi

* chore: update zerokit submodule

* fix: missing comma
2023-05-10 12:54:58 +05:30
Ivan Folgueira Bande
1597a8dd37 docs: adding new tutorial on how to handle heaptrack with nim waku (#1719)
* doc: adding new tutorial on how to handle heaptrack with nim waku

* Update docs/tutorial/heaptrack.md

Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>

* Update docs/tutorial/heaptrack.md

Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>

* Update docs/tutorial/heaptrack.md

Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>

---------

Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>
2023-05-09 15:37:47 +02:00
Hanno Cornelius
89d66dde9a fix: change filter request default behaviour to ping (#1721) 2023-05-09 09:18:14 +02:00
Aaryamann Challani
8ab666955b fix(rln-relay): handle invalid deletes (#1717) 2023-05-05 15:48:06 +05:30
Hanno Cornelius
b9b9280b80 fix: fix filter v2 proto fields (#1716) 2023-05-05 10:29:53 +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
Alvaro Revuelta
6ab9661373 fix: unstable peers in mesh (#1710) 2023-05-02 15:40:13 +02:00
Alvaro Revuelta
294a41d33c feat: configure protected topics via cli (#1696) 2023-05-02 11:45:50 +02:00
Vaclav Pavlin
c405f83a15 refactor: use QUICK_AND_DIRTY_COMPILER flag for CI (#1708) 2023-05-02 10:25:23 +02:00
fryorcraken.eth
7203e18c6f Fix links and add notes on Waku v1 deprecation (#1707) 2023-05-02 09:56:25 +02:00
Vaclav Pavlin
28c58825e3 feat:add commit message linter and PR template (#1677) 2023-04-28 14:25:39 +02:00
Lorenzo Delgado
6751f4b849 chore: move networkmonitor and wakucanary to apps directory 2023-04-27 16:25:31 +02:00
Lorenzo Delgado
3db31473dd refactor(wakunode2): flatten and simplify app setup (#1705) 2023-04-26 19:25:18 +02:00
Vaclav Pavlin
a4d22fadc3 refactor:optimize getting number of connections and streams (#1673) 2023-04-26 10:47:46 +02:00
Ivan Folgueira Bande
dab5120a97 feat(mem-analysis): Adding Dockerfile_with_heaptrack (#1681)
* Adding Dockerfile_with_heaptrack

* build: merge heaptrack dockerfile with production dockerfile (#1682)

* Avoid blindly copy /usr/lib/ and install only the needed libraries

* Adding heaptracker options in the Makefile

* Dockerfile simplification. (apk add libunwind)

* Dockerfile, Makefile: ++heaptrack params to nim build & 'heaptrack_support' in Nim compiler

* Dockerfile, Makefile: more convenient name for 'NIM_COMMIT' Docker arg

* Making 'NIM_COMMIT' more explicit

---------

Co-authored-by: Lorenzo Delgado <lorenzo@status.im>
2023-04-25 17:54:28 +02:00
Lorenzo Delgado
1c665742be refactor(wakunode2): split setup logic into app module 2023-04-25 15:34:57 +02:00
Alvaro Revuelta
bcdb7e9cfb chore: add payload bytes to trace log (#1703) 2023-04-25 09:50:43 +02:00
Alvaro Revuelta
79a5ff4b0b chore: refactor flaky test with while (#1698) 2023-04-25 09:50:13 +02:00
Lorenzo Delgado
59cbcf9dd0 chore(core): move peers utils module to waku_core 2023-04-24 16:37:54 +02:00
Alvaro Revuelta
686b5ee09a feat: add metrics with msg size histogram (#1697) 2023-04-20 13:45:29 +02:00
Lorenzo Delgado
1fe3f5b8c8 fix(networkmonitor): break import dependency with wakunode2 app 2023-04-19 21:20:50 +02:00
Lorenzo Delgado
fb5778cc18 build: decouple test2 target from testcommon 2023-04-19 17:08:28 +02:00
Alvaro Revuelta
c4c14f6ffd fix: import nimchronos instead heartbeat (#1695) 2023-04-19 16:51:15 +02:00
Lorenzo Delgado
1b1708884b chore(core): move utils time module to waku_core 2023-04-19 16:39:52 +02:00
Alvaro Revuelta
5598ab64e1 feat: curate peers shared over px protocol (#1671) 2023-04-19 16:12:00 +02:00
Lorenzo Delgado
44b1f3bfe5 fix(rest): change rest server result error type to string 2023-04-19 14:55:39 +02:00
Lorenzo Delgado
bf1ff25a47 chore: add deprecation notice to utils module. move heartbeat to common 2023-04-19 14:27:16 +02:00
Ivan Folgueira Bande
4655a9880f Adding more detail in an error produced by 'parsePeerInfo' (#1687)
* Adding more detail in an error produced by 'parsePeerInfo'

* utils/peers.nim: casting to 'string' in a more idiomatic/convenient way
2023-04-19 14:02:54 +02:00
Lorenzo Delgado
e2dc11912c chore(core): rename waku_message module to waku_core 2023-04-19 13:29:23 +02:00
Ivan Folgueira Bande
e1e3dd315f peers.nim: adding more detail in case the p2pPart doesn't contain '/' (#1684) 2023-04-19 10:24:06 +02:00
Lorenzo Delgado
cc85f7f213 chore: flatten waku v2 protocols folder 2023-04-18 15:22:10 +02:00
Aaryamann Challani
111dc1ad19 fix(rln-relay): scope of getEvents (#1672) 2023-04-18 16:55:10 +05:30
Lorenzo Delgado
9506800d6a feat(enr): added support for relay shards field 2023-04-17 15:21:20 +02:00
Alvaro Revuelta
7de62f29cb chore: fix test failing intermittently (#1679) 2023-04-17 14:30:11 +02:00
Alvaro Revuelta
ae98f49eff fix(logs): fix log reporting wrong ok connected peers (#1675) 2023-04-17 11:46:15 +02:00
Vaclav Pavlin
9c97073b20 bug: move canBeConnected to PeerManager and check for potential overflow (#1670) 0.17.0 2023-04-14 15:12:22 +02:00
Alvaro Revuelta
46faf099cb chore(networking): get relay number of connections from protocol conns/streams (#1609) 2023-04-12 13:05:34 +02:00
Ivan Folgueira Bande
cef5f89cf3 Adding parsePeerInfo and deprecating 'parseRemotePeerInfo' (#1658) 2023-04-12 11:29:11 +02:00
Vaclav Pavlin
976dbcfb35 feat: Add tools maket target and build tools in CI (#1668) 2023-04-12 10:22:45 +02:00
Ivan Folgueira Bande
90bef27f45 chore: allow to call store api endpoints without a storenode (#1575) (#1647)
* test_jsonrpc_store: testing when there is no peer-store-node available
2023-04-12 09:26:26 +02:00