-
Notifications
You must be signed in to change notification settings - Fork 1
feat/p2p-gossipsub-monitoring-stats #22
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ef3c5d4
feat(gossipsub): add monitoring pub/sub and safer behaviour init
veryCrunchy 53709b5
feat(crypto): export verify_result from crypto mod
veryCrunchy 8ea5318
feat(db): add peer & network stats persistence
veryCrunchy 2c966ed
feat(orchestrator): enhance P2P setup, add timing, stats, and result …
veryCrunchy daa48ed
feat(p2p): add message types and basic network scaffolding
veryCrunchy f1abc5d
feat(ui): improve network panel details and dynamic status
veryCrunchy af019c0
feat(tui): add peer/network stats and UI state tracking
veryCrunchy 7c5a272
feat(service): run P2P tasks on a Tokio LocalSet
veryCrunchy b43e7fb
feat(config): add production and local multi-peer configs
veryCrunchy a251c18
refactor: tidy imports, formatting, and dead-code annotations
veryCrunchy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Production Configuration Example | ||
| # Deploy this on internet-facing nodes | ||
|
|
||
| [zeromq] | ||
| bind = "*" | ||
| port = 5555 | ||
|
|
||
| [preferences] | ||
| use_peerup_layer = true | ||
| allow_peer_leech = true | ||
| minimum_peer_mr = 0 | ||
| timeout_seconds = 10 | ||
| degraded_threshold_ms = 1000 | ||
| location_privacy = "country_only" # Privacy for production | ||
| location_update_interval_secs = 3600 | ||
|
|
||
| [peerup] | ||
| # Listen on ports 9000-9010 (ensure firewall allows inbound TCP) | ||
| port_range = [9000, 9010] | ||
|
|
||
| # Bootstrap peers - replace with your actual bootstrap node addresses | ||
| # Format: /ip4/<IP>/tcp/<PORT>/p2p/<PEER_ID> | ||
| # or: /dns4/<DOMAIN>/tcp/<PORT>/p2p/<PEER_ID> | ||
| bootstrap_peers = [ | ||
| # Example: "/dns4/bootstrap1.example.com/tcp/9000/p2p/12D3KooWExamplePeerID1", | ||
| # Example: "/dns4/bootstrap2.example.com/tcp/9000/p2p/12D3KooWExamplePeerID2", | ||
| ] | ||
|
|
||
| # Disable mDNS for internet-facing nodes (only useful on LAN) | ||
| enable_mdns = false | ||
|
|
||
| # Enable Kademlia DHT for peer discovery (production standard) | ||
| enable_kademlia = true | ||
|
|
||
| # Enable relay for NAT traversal (if nodes are behind NAT) | ||
| enable_relay = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The from_p2p_result method returns None if signature is missing, but the caller in orchestrator (line 253) only logs a warning when None is returned and doesn't distinguish between missing signature vs other errors. This makes debugging harder. Consider logging a more specific message when signature is missing.