117 Commits

Author SHA1 Message Date
gabrielmer
047e493dc9 chore: updating nim-json-serialization dependency (#2248) 2023-11-28 11:47:21 +01:00
gabrielmer
4cff5a9dbc chore: upgrade dependencies v0.22 (#2185) 2023-11-06 13:30:34 +02:00
NagyZoltanPeter
b6ea215d71 Pull new version of nim-presto that implements RestServer' new error handler callback (#2144)
Added rest request error handler to capture calls on not installed endpoints
better, more descriptive error message returned.
2023-10-27 16:31:57 +02:00
gabrielmer
ab98d89082 chore: bumping nim-libp2p to include WSS fix (#2150) 2023-10-23 21:35:43 +03:00
Ivan Folgueira Bande
01fd3e0082 bumping web3 (#2066) 2023-09-25 08:13:40 +02:00
Ivan Folgueira Bande
5122517b9a chore: bump nim-libp2p, nim-toml-serialization, nim-unicodedb, nim-unittest2, nim-websock, nim-zlib, & nimbus-build-system (#2065) 2023-09-22 12:54:23 +02:00
Ivan Folgueira Bande
b4e1a1ca49 Bumping vendor/nim-confutils and vendor/nim-serialization (#2056) 2023-09-21 13:12:14 +02:00
Ivan Folgueira Bande
8a0c2f1a37 Bumping vendor/nim-stew. Adding vendor/nim-results (#2055)
The 'nim-results' package is extracted from 'nim-stew'
2023-09-20 17:46:27 +02:00
Ivan Folgueira Bande
ee033bffca Bumping some vendors (#2048)
dnsclient.nim
nim-bearssl
nim-eth
nim-faststreams
nim-http-utils
nim-json-rpc
nim-json-serialization
nim-libbacktrace
nim-metrics
nim-regex
nim-secp256k1
nim-stew
nim-stint
nim-testutils
2023-09-20 15:45:20 +02:00
Ivan Folgueira Bande
66b389a3c4 chore: Updating nim-chronicles, nim-chronos, nim-presto, nimcrypto, nim-libp2p, and nim-nat-transversal (#2043) 2023-09-18 18:51:49 +02:00
Ivan Folgueira Bande
2f32e733aa refactor(cbindings): Thread-safe communication between the main thread and the Waku Thread (#1978)
* Thread-safe comms between main thread & Waku Thread - ChannelSPSCSingle.
* Renaming procs from 'new' to 'createShared'. They use the shared allocator.
* peer_manager_request: no need to use ptr WakuNode.
* waku_thread: moving the 'waitFor' to upper layer.
* waku_thread: `poll()` -> `waitFor sleepAsync(1)` to avoid risk of blocking.
* libwaku: thread-safe "sub-objects" in an inter-thread requests.
  When two threads send data each other, that data cannot contain any
  GC'ed type (string, seq, ref, closures) at any level.
* Allocating the 'configJson' in main thread and deallocating in Waku Thread.
2023-09-18 09:21:50 +02:00
Aaryamann Challani
a28be0557c chore(rln-relay): logs, updated submodule, leaves_set metric (#2024)
* chore(rln-relay): logs, updated submodule, leaves_set metric

* chore(rln-relay): update build script, fix makefile
2023-09-18 10:56:58 +05:30
Aaryamann Challani
d5d8445a3a fix(rln-relay): bump zerokit to v0.3.2 (#1951) 2023-08-25 13:44:57 +05:30
Aaryamann Challani
0828b72afb chore(submodules): use zerokit v0.3.1 only (#1886) 2023-08-09 20:21:06 +05:30
Aaryamann Challani
0132640308 feat(rln-relay): close db connection appropriately (#1858) 2023-07-27 17:21:21 +05:30
Aaryamann Challani
922564a90b test(ci): rln-relay compilation in docker (#1853)
* test(ci): rln-relay compilation in docker

* fix(ci): make explicit digest in base image
2023-07-24 19:25:28 +02:00
Ivan Folgueira Bande
dcb4c8b74e fix(libp2p): Updating nim-libp2p to fix the wss connectivity issue (#1848)
* Updating nim-libp2p to fix the `wss` connectivity issue

* The `nim-libp2p` adds many changes although we are actually interested
in the latest commit:

> wstransport.nim: avoid re-raising 'TransportOsError' to avoid stopping
`switch.accept` (#929)

* The `nim-stew` bump is needed so that the `nim-libp2p` can compile.

* The changes in `waku_node.nim` are needed due to the changes in
`nim-stew`.

* waku_node.nim: returning a "completed" future within 'statusAndConfidenceHandler'

  This is aimed to avoid the next exception happening in the wakunode:

  ```
  Unhandled defect: Async procedure (service.nim(74)    callHandler)
  yielded `nil`, are you await'ing a `nil` Future? [AssertionDefect]
  ```

  * Adding 'async' to 'statusAndConfidenceHandler' so that it properly returns a Future[void]
2023-07-13 18:00:55 +02:00
Aaryamann Challani
9436812ce1 chore(rln-relay): bump zerokit (#1838) 2023-07-04 18:18:09 +05:30
Ivan Folgueira Bande
32deb3bc87 chore: bump nim-libp2p to 224f92e 2023-06-30 15:18:07 -04:00
Aaryamann Challani
a90c8d3c65 chore(rln-relay): bump zerokit for version fix (#1822) 2023-06-28 11:42:09 +05:30
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
ad020c8112 feat(rln-relay): metadata ffi api (#1803)
* feat(rln-relay): metadata ffi api

* chore(rln-relay): bump to latest master after merge

* fix(rln-relay): naming, visibility, tests
2023-06-16 11:33:41 +05:30
Ivan Folgueira Bande
4717c96537 Updating 'vendor/nim-json-rpc' to get fix for wrong header in rpc response (#1802) 2023-06-15 15:21:46 +02:00
Tanguy
76dae8877b chore(deps): bump libp2p & websock (#1800) 2023-06-15 13:17:19 +02:00
Tanguy
8aae45c416 Revert "chore(libp2p): update nim-libp2p (#1786)" (#1788)
This reverts commit e2430a03fac225dfb954c712e42eb6984d532a48.
2023-06-09 10:10:47 +02:00
Aaryamann Challani
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
Vaclav Pavlin
e2430a03fa chore(libp2p): update nim-libp2p (#1786) 2023-06-08 12:54:28 +02:00
Aaryamann Challani
318ae519f9 feat(rln-relay): use new atomic_operation ffi api (#1733)
* chore(rln-relay): bump zerokit

* feat(rln-relay): use new atomic_operations ffi api

* fix(rln-relay): static gm
2023-05-18 10:42:08 +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
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
Alvaro Revuelta
6ab9661373 fix: unstable peers in mesh (#1710) 2023-05-02 15:40:13 +02:00
Lorenzo Delgado
e6055625b6 build(deps): upgrade nim-chronos and nim-presto to latest version 2023-04-04 12:49:13 +02:00
Alvaro Revuelta
06df6c3119 bug: bump libp2p with traffic metrics fix (#1642) 2023-04-04 11:19:05 +02:00
Lorenzo Delgado
ad5c837a2d build(deps): upgrade nim-confutils to latest version 2023-03-31 17:20:58 +02:00
Alvaro Revuelta
dbbb575d77 chore: bump nim-libp2p 53b060f (#1633) 2023-03-31 15:42:33 +02:00
Hanno Cornelius
6320c165ec chore: update submodules (#1601)
* chore: update submodules

* fix: fix peer store test

* fix: legacy build requires Nim binary deps
2023-03-13 16:33:24 +02:00
Aaryamann Challani
11805db927 feat(rln-relay): use precompiled resources w/ rln (#1578)
* feat(rln-relay): use precompiled resources w/ rln

* chore: remove resource cp stage from Dockerfile

* chore(makefile): remove DOCKER_IMAGE_STAGE from makefile

* chore: bump submodule, rev branch
2023-03-13 12:03:21 +05:30
Aaryamann Challani
982c98c080 fix(submodule): remove vendor/news dir (#1582) 2023-02-28 18:12:07 +05:30
Aaryamann Challani
577cdf030b chore(rln-relay): bump zerokit and update ffi (#1571)
fix(chat2): compilation
2023-02-22 19:47:12 +05:30
Lorenzo Delgado
eeb288bab7 chore(deps): upgrade nim-sqlite3-abi to latest version 2023-02-20 10:35:56 +01:00
Alvaro Revuelta
f88dc816ee chore: bump nim-libp2p 444b837 (#1546)
* chore: bump nim-libp2p 444b837

* fix: update test with libp2p mods
2023-02-10 16:44:06 +01:00
Alvaro Revuelta
c025c50f71 chore: bump nim-libp2p (#1518) 2023-01-30 15:30:12 +01:00
Aaryamann Challani
62e2ec41ec fix(submodule): remove rln dir (#1519) 2023-01-30 17:25:40 +05:30
Hanno Cornelius
a80ebf8a27 fix: fix underlying file descriptor leak (#1483) 2023-01-11 18:22:00 +02:00
Hanno Cornelius
9aa5be8b0e chore: update submodules (#1480)
* chore: switch to nim-eth master branch

* chore: updated submodules

* fix: submodule without error handling

* fix: autonat client
2023-01-11 08:06:30 +02:00
Aaryamann Challani
7243a0de0d fix(deps): bump nim-secp256k1 (#1468) 2022-12-16 10:09:33 +05:30
G
eac945a16a refactor(rln): use zerokit extended_key_gen in place of key_gen (#1459)
* chore(rln-relay): refactor mounting procedure

* fix(rln-relay): tests

* fix(rln-relay|chat2): update mounting proc in chat2, fix args to mountRlnRelay

* refactor(rln): use zerokit extended_key_gen in place of key_gen

refactor(rln): rename membershipKeyPair to identityCredential

update zerokit submodule

refactor(rln): use extended_key_gen; rebrand keypairs to idCredentials

refactor(rln): rename mountRlnRelay memKeyPair argument

* fix(rln): fix wrong field

* fix(rln): add () to toHex

Co-authored-by: Aaryamann Challani <43716372+rymnc@users.noreply.github.com>

Co-authored-by: rymnc <43716372+rymnc@users.noreply.github.com>
2022-12-14 12:28:09 +01:00
Lorenzo Delgado
6f21b33831 feat(wakunode2): support log format format selection 2022-12-07 12:30:32 +01:00
Lorenzo Delgado
c90a1be7c6 chore(deps): upgrade nim-stew to latest version 2022-12-06 16:38:40 +01:00
Lorenzo Delgado
f5f1f639da chore(deps): upgrade nim-eth to latest version 2022-11-30 16:12:58 +01:00