Skip to content

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 👍

#[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

) -> RpcResult<PaginateLocalContentInfo<BeaconContentKey>>;

/// 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