-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: network monitor improvements #2939
Conversation
You can find the image built from this PR at
Built from 2088b1c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good!
Code organization wise I'll let @vpavlin chime in.
We're thinking alike :P -> #2930 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Very insightful one! 💯
--rln-relay Enable spam protection through rln-relay: true|false [=true]. | ||
--rln-relay-dynamic Enable waku-rln-relay with on-chain dynamic group management: true|false | ||
[=true]. | ||
--rln-relay-tree-path Path to the RLN merkle tree sled db (https://github.com/spacejam/sled). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qq: what is "sled" :) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sled is a database used by RLN for storing the tree
--rln-relay-eth-contract-address Address of membership contract on an Ethereum testnet. | ||
--rln-relay-epoch-sec Epoch size in seconds used to rate limit RLN memberships. Default is 1 second. | ||
[=1]. | ||
--rln-relay-user-message-limit Set a user message limit for the rln membership registration. Must be a positive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--rln-relay-user-message-limit Set a user message limit for the rln membership registration. Must be a positive | |
--rln-relay-user-message-limit Set a user message limit (number of messages per epoch) for the rln membership registration. Must be a positive. |
let totalNodes = flatNodes.len | ||
let seenNodes = flatNodes.countIt(it.seen) | ||
let totalNodes = discoveredNodes.len | ||
#let seenNodes = totalNodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can directly remove that line
#let seenNodes = totalNodes |
|
||
info "discovered nodes: ", total = totalNodes, seen = seenNodes | ||
info "discovered nodes: ", total = totalNodes #, seen = seenNodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can either remove that comment or uncomment it and uncomment the previous line
info "discovered nodes: ", total = totalNodes #, seen = seenNodes | |
info "discovered nodes: ", total = totalNodes |
ports: | ||
- '3000:3000' | ||
volumes: | ||
- grafana-data:/var/lib/grafana |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very curious about what the Grafana boards look like. For some reason, I miss the definition of the Grafana board itself
Description
Wanted to run network monitor to get an idea of status network with clusterID 16 especially to debug peer discovery and connectivity.
Noticed that peer filtering was not happening and it was trying to connect to all peers even from TWN and made changes.
Changes