-
Notifications
You must be signed in to change notification settings - Fork 180
enh/871-add-peerscore-scorefunc-signdpeer-gossipsub-1.1 #872
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
base: main
Are you sure you want to change the base?
enh/871-add-peerscore-scorefunc-signdpeer-gossipsub-1.1 #872
Conversation
…' of https://github.com/Winter-Soren/py-libp2p into enh/871-add-peerscore-scorefunc-signdpeer-gossipsub-1.1
Issue SummaryThe peer exchange test ( Root Cause AnalysisBefore Gossipsub v1.1 Changes:
After Gossipsub v1.1 Changes:
Error Logs Observed
Solution Implemented
Key ChangesIn
In
|
@Winter-Soren : Wonderful progress, Soham. Great work. Adding @lla-dane and @sumanjeet0012 to keep them in sync with the latest gossipsub developments in this PR. |
What was wrong?
Gossipsub v1.1 features were incomplete in py-libp2p:
Refs:
Issue #871
How was it fixed?
signedPeerRecord
envelopes, ensurepeerID
match, upsert in peerstore, connectPeerScorer
with P1–P4 + P5 (weights, caps, decay, thresholds)Summary of approach
libp2p/pubsub/score.py
with minimal decayed scoring model and thresholdslibp2p/pubsub/gossipsub.py
:libp2p/pubsub/pubsub.py
:To-Do
Cute Animal Picture