1
0
mirror of https://github.com/waku-org/nwaku.git synced 2025-01-16 01:45:40 +00:00

1157 Commits

Author SHA1 Message Date
Ivan Folgueira Bande
b9931e277d
filter: some adjustments to avoid crash and use new insteat init 2024-12-05 20:30:38 +01:00
Ivan Folgueira Bande
26a2112c5d
filter: dial push connection onsubscribe only 2024-12-05 16:03:38 +01:00
Ivan Folgueira Bande
e493b588f3
make sure filter protocol is started if it is mounted 2024-12-04 10:43:47 +01:00
Ivan Folgueira Bande
5b434cbd0c
filter: make sure the custom start and stop procs are called 2024-12-04 01:17:27 +01:00
Ivan Folgueira Bande
6a6dd7a161
filter: close stream on every delivered message 2024-12-03 22:23:28 +01:00
Ivan Folgueira Bande
7ade979d00
filter subscriptions: add more debug logs 2024-12-03 22:23:05 +01:00
Ivan Folgueira Bande
3ffdaadf2e
waku_filter_v2: idiomatic way run periodic subscription manager 2024-12-03 22:21:12 +01:00
Ivan Folgueira Bande
545c08bb3e
filter: add better debug logs 2024-11-29 16:07:27 +01:00
Ivan Folgueira Bande
a3065f6cb0
add more debug logs into peer exchange 2024-11-12 14:02:59 +07:00
Ivan Folgueira Bande
fddd1e74f0
more debug logs for filter protocol 2024-11-12 13:47:18 +07:00
gabrielmer
45c6d890ef
fix: out connections leak () 2024-10-03 12:42:30 +03:00
gabrielmer
f8946b8263
fix: rejecting excess relay connections () 2024-09-27 19:42:51 +03:00
Ivan FB
368bb3c199
append current version in agentString which is used by the identify protocol () 2024-09-25 12:59:46 +03:00
NagyZoltanPeter
5afa9b13ea
Fix PeerExchange rpc decode in order not to take response's status_code mandatory - for support old protocol implementation () 2024-09-25 11:51:50 +02:00
NagyZoltanPeter
9b445ac49f
fix: px protocol decode - do not treat missing response field as error ()
* Fix missing response field of PeerExchange RPC treated as error.
* Fix PX metrics from gauge to counter for better dashboard stats
2024-09-24 12:47:52 +02:00
Ivan FB
e492c590e9
chore: Better database query logs and logarithmic scale in grafana store panels () 2024-09-20 22:47:15 +03:00
Ivan FB
26a488d522
chore: extending store metrics ()
* adding query_metrics module
* update fleet-dashboard with new store panels for better timing insight
2024-09-20 15:43:00 +03:00
Ivan FB
b534a1c257
sharding: reduce log level for a too spammy message () 2024-09-20 15:42:46 +03:00
NagyZoltanPeter
0a7f16a332
chore: rate limit peer exchange protocol, enhanced response status in RPC ()
* 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
NagyZoltanPeter
83f25c3e99
chore: Switch libnegentropy library build from shared to static linkage ()
* Switch libnegentropy library build from shared to static linkage

* Update negentropy with -fPIC compile option that is necessary for libwaku build

* Bump waku-org/negentropy to the latest on master to incorporate merged static build of libnegentropy
2024-09-18 14:34:50 +02:00
gabrielmer
8f28992599
fix: setting up node with modified config () 2024-09-16 16:30:38 +03:00
gabrielmer
51391aa2ac
adding a dynamic sleep interval in the connectivity loop () 2024-09-12 22:49:47 +02:00
Ivan FB
5ea1cf0cf3
chore: libwaku - extending the library with peer_manager and peer_exchange features ()
* libwaku: get peerids by protocol and peer exchange request
2024-09-11 10:13:54 +02:00
fryorcraken
ce9a8c468a
chore: use submodule nph in CI to check lint () 2024-09-11 11:51:42 +10:00
gabrielmer
a3cd2a1a92
chore: deprecating pubsub topic () 2024-09-10 15:07:12 -06:00
Ivan FB
d3e6717a60
chore: lightpush - error metric less variable by only setting a fixed string () 2024-09-10 17:30:09 +02:00
Ivan FB
5a0edff79a
fix: get back health check for postgres legacy () 2024-09-10 15:07:53 +02:00
Ivan FB
6c890de4a8
chore: Bump dependencies for v0.33 () 2024-09-09 10:45:14 +02:00
Ivan FB
45319f09c9
chore: enhance libpq management ()
* db_postgres: register pg socket fd to chronos better data available awareness
* waku_store protocol: better logs to track time and new store metrics
2024-09-06 11:33:15 +02:00
Simon-Pierre Vivier
e1e05afb02
chore: per limit split of PostgreSQL queries () 2024-09-04 10:17:28 -04:00
Ivan FB
e8a49b76b2
chore: Better timing and requestId detail for slower store db queries ()
* Better timing and requestId detail for store db queries slower than two seconds
* Adapt tests and client to allow sending custom store requestId
2024-08-29 22:56:14 +02:00
Ivan FB
fd84363ec4
chore: remove unused setting from external_config.nim () 2024-08-29 17:54:37 +02:00
Ivan FB
bd2cf99d7e
libwaku: exposing more features ()
- 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
Simon-Pierre Vivier
87b340f78a
fix waku sync config defaults () 2024-08-28 10:26:38 -04:00
Ivan FB
0f68274c85
chore: delivery monitor for store v3 reliability protocol ()
- Use of observer observable pattern to inform delivery_monitor about subscription state
- send_monitor becomes a publish observer of lightpush and relay
- deliver monitor add more protection against possible crash and better logs
- creating a separate proc in store client for delivery monitor
2024-08-27 16:49:46 +02:00
Darshan K
4315710289
fix: peer-exchange issue () 2024-08-23 23:31:30 +05:30
Ivan FB
32f2d85dcc
chore: ANALYZE messages query should be performed regularly ()
---------

Co-authored-by: Richard Ramos <info@richardramos.me>
2024-08-21 19:17:08 +02:00
NagyZoltanPeter
c7093d7ce2
Distinction between gross/net trafic in bandwidth per shard metric, added bandwidths and request rate panels to single node and fleet dashboards () 2024-08-21 17:10:29 +02:00
NagyZoltanPeter
f4fa73e961
chore: liteprotocoltester for simulation and for fleets ()
* Added phase 2 - waku-simulatior integration in README.md

* Enhancement on statistics reports, added list of sent messages with hash, fixed latency calculations

* Enable standalonde running liteprotocoltester agains any waku network/fleet

* Fix missing env vars on run_tester_node.sh

* Adjustment on log levels, fix REST initialization

* Added standalon docker image build, fine tune duplicate detection and logging.

* Adjustments for waku-simulator runs

* Extended liteprotocoltester README.md with docker build

* Fix test inside docker service node connectivity failure

* Update apps/liteprotocoltester/README.md

Co-authored-by: gabrielmer <101006718+gabrielmer@users.noreply.github.com>

* Apply suggestions from code review

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

* Explain minLatency calculation in code comment

---------

Co-authored-by: gabrielmer <101006718+gabrielmer@users.noreply.github.com>
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-08-21 14:54:18 +02:00
gabrielmer
e8bce67d76
chore: logging received message info via onValidated observer () 2024-08-19 14:13:28 +02:00
gabrielmer
e51ffe0759
chore: deprecating protected topics in favor of protected shards () 2024-08-19 12:56:22 +02:00
gabrielmer
67439057fb
chore: rename NsPubsubTopic () 2024-08-19 11:29:35 +02:00
Ivan FB
b8550c5550
postgres_driver limit max num hashes to 100 () 2024-08-19 11:12:31 +02:00
richΛrd
2fd4eb62fd
chore: print WakuMessageHash as hex strings () 2024-08-14 21:04:20 +02:00
gabrielmer
225b5e7260
avoid using the msg key in chronicles () 2024-08-14 16:40:08 +02:00
Simon-Pierre Vivier
2cc86c51da
feat: Nwaku Sync ()
* feat: Waku Sync Protocol

* feat: state machine ()

* feat: pruning storage mehcanism ()

* feat: message transfer mechanism & tests ()

* update docker files

* added ENR filed for sync & misc. fixes

* adding new sync range param & fixes

---------

Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
Co-authored-by: Prem Chaitanya Prathi <chaitanyaprem@gmail.com>
2024-08-13 07:27:34 -04:00
gabrielmer
54b5222222
pruning excess in relay connections () 2024-08-12 17:59:11 +02:00
Ivan FB
71d4a11647
faster retention policy when error and use of detach finalize when needed () 2024-08-12 10:47:01 +02:00
richΛrd
5f0fbd78c4
fix: return on insert error () 2024-08-11 21:35:04 -04:00
Ivan FB
4d47aa655f
chore: Optimize hash queries with lookup table ()
* Upgrade Postgres schema to add messages_lookup table
* Perform optimized query for messageHash-only queries
2024-08-08 21:46:08 +02:00