17 Commits

Author SHA1 Message Date
Alvaro Revuelta
f48687fc45 chore(networkmonitor): Add DNS discovery (#1446)
* chore(networkmonitor): add dns disc to networkmonitor tool

* chore(networkmonitor): decouple ip api calls from main loop

* chore(networkmonitor): add timeout flag
2022-12-05 20:02:21 +01:00
Alvaro Revuelta
8eada1927a refactor: reuse nim-libp2p peerstore + move peermanager logic (#1383)
* refactor: reuse nim-libp2p peerstore + move peermanager logic

* refactor: fix comments

* refactor: modify reconnectPeers and unittest

* feat(apps): new flag for peerStoreCapacity

* fix(examples): fix example2 target

* refactor: fix comments
2022-11-24 14:11:23 +01:00
Lorenzo Delgado
c113c59a43 refactor(protocols): decouple protocol rpc types from api types 2022-11-16 20:02:38 +01:00
Alvaro Revuelta
eac7eb65eb chore(networkmonitor): use nim-presto + add timeout (#1389) 2022-11-16 16:38:31 +01:00
7a9d0aef26 tools: move readmes into their respective folders
Makes it easier to link to just one folder in the repo for documentation
purposes without having to also link the parent folder.

Also added a meta file linking to the tools.
Not sure what the others ones do.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-11-15 16:21:51 +01:00
Alvaro Revuelta
21a6a64b4e chore(networkmonitor): add metric listing content topics + messages (#1335)
* chore(networkmonitor): add metric listing content topics + messages

* chore(networkmonitor): drop topics after x amount
2022-11-14 08:33:36 +01:00
Alvaro Revuelta
172fa9bf38 chore(networkmonitor): tool to discover and provide metrics on peers (#1290)
* chore(networkmonitor): initial prototype

* chore(networkmonitor): add cli, metrics and PoC

* feat(utils): add supportsCapability function + tests

* feat(utils): add supportedCapabilites function

* chore(networkmonitor): add metrics with enr/ip/capabilities

* chore(networkmonitor): refactor + tests

* chore(networkmonitor): add discovered timestamp

* chore(networkmonitor): add metrics on connected nodes

* chore(networkmonitor): new flags + utils file + readme

* chore(networkmonitor): add user-agent metrics

* chore(networkmonitor): connect only to randomly discovered peers

* chore(networkmonitor): get location of peer using ip

* chore(networkmonitor): expose peer metrics with simple rest server

* chore(networkmonitor): update README

* chore(networkmonitor): fix wakunode2 to waku_node

* chore(networkmonitor): fix import order

* chore(networkmonitor): fix comments + refactor + pushraises

* chore(networkmonitor): refactor + handle exceptions

* chore(networkmonitor): fix makefile after rebase

* chore(networkmonitor): address review comments 1

* chore(networkmonitor): add nim.cfg
2022-11-10 10:29:34 +01:00
Lorenzo Delgado
fd71d8d48a refactor(store): decouple waku store public api types from rpc types 2022-11-09 18:50:18 +01:00
Lorenzo Delgado
c475c3d1fe refactor: unify pubsub topic type and default value 2022-11-09 09:55:47 +01:00
Lorenzo Delgado
a013cf68d5 chore: build rln dependecies only when building v2 2022-11-07 09:14:21 +01:00
Alvaro Revuelta
395763beed chore(wakucanary): remove port hardcoding + add cli config (#1345) 2022-11-05 12:56:41 +01:00
Lorenzo Delgado
141e3d443a fix: replace TaintedString type deprecated in nim 1.5 2022-11-02 14:55:48 +01:00
Hanno Cornelius
1a271d9c79 chore: update submodules and bump Nim to 1.6.6 (#1307)
* chore: update submodules

* fix: libp2p now provides callback to update peer addrs

* fix: breaking change in EthereumNode constructor

* fix: contentType type has changed (again)

* fix: explicit future type

* fix: nim 1.6.6 error handling requirements

* fix: missed a spot - peer info addrs in sim2

* fix: help compiler a bit here
2022-10-28 12:51:46 +03:00
Alvaro Revuelta
da459f5c97 chore(wakucanary): resolve dns (#1271) 2022-10-18 10:13:42 -05:00
Lorenzo Delgado
c8ac16d6fb refactor(node): split wakunode into waku_node and wakunode2 2022-10-18 09:05:53 -05:00
Lorenzo Delgado
5959680b8e chore: move apps and tools to their own directory 2022-10-12 14:41:25 -05:00
Alvaro Revuelta
3b2b4fbb7d chore(wakucanary): add canary tool (#1205)
* chore(wakucanary): create folder structure

* chore(wakucanary): spawn waku node

* chore(wakucanary): get supported protocols from lp2p

* chore(wakucanary): add timeout + refactor

* chore(wakucanary): fix comments v1

* chore(wakucanary): update readme

* chore(wakucanary): static->relay, abbr, logLevel, filter issue, colon

* chore(wakucanary): fix typos
2022-10-11 05:58:44 +02:00