-
Notifications
You must be signed in to change notification settings - Fork 63
feat: implement initial gossipsub p2p code with block and vote #691
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
Conversation
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.
Looks good. Great work 👍
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.
After rebasing and pulling after this PR was merged, the lean binary was not even running for me. Failing due to network spec not initialised. I think its because you are using beacon network spec for lean stuff and also beacon gossipsubconfig.
I have pushed the fix for this on my PR here #690
.expect("Failed to create network service"); | ||
let network_service = LeanNetworkService::new( | ||
Arc::new(LeanNetworkConfig { | ||
gossipsub_config: GossipsubConfig::default(), |
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.
Shouldn't this target LeanGossipsubConfig
?
} | ||
|
||
pub struct LeanNetworkConfig { | ||
pub gossipsub_config: GossipsubConfig, |
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.
Same here
.history_gossip(3) | ||
.max_messages_per_rpc(Some(500)) | ||
.duplicate_cache_time(Duration::from_secs( | ||
SLOTS_PER_EPOCH * beacon_network_spec().seconds_per_slot * 2, |
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.
shouldn't this be lean_network_spec()
What was wrong?
Implements first half of this issue: #671
How was it fixed?
I Implemented the gossipsub p2p code with the block and vote