Skip to content
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

refactor: update Gossip to PutContent #1607

Merged
merged 2 commits into from
Jan 2, 2025
Merged

Conversation

KolbyML
Copy link
Member

@KolbyML KolbyML commented Dec 14, 2024

What was wrong?

the spec changed ethereum/portal-network-specs#346

How was it fixed?

update portal_*Gossip to portal_*PutContent

@KolbyML KolbyML marked this pull request as ready for review December 14, 2024 20:55
@KolbyML KolbyML marked this pull request as draft December 14, 2024 20:56
@KolbyML KolbyML marked this pull request as ready for review December 14, 2024 21:36
Copy link
Member

@ogenev ogenev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TraceGossipInfo {
pub struct PutContentInfo {
// Indicates how many peers the content was gossiped to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Those comments should be doc strings:

Suggested change
// Indicates how many peers the content was gossiped to
/// Indicates how many peers the content was gossiped to

@@ -114,21 +115,21 @@ pub trait BeaconNetworkApi {

/// Send the provided content value to interested peers. Clients may choose to send to some or
/// all peers. Return the number of peers that the content was gossiped to.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We have changed the return format, and those doc strings should be updated here and in history and state files.

@KolbyML KolbyML merged commit 5ae01c3 into ethereum:master Jan 2, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants