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

simulators/portal: update gossip to put content tests #1196

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

KolbyML
Copy link
Member

@KolbyML KolbyML commented Jan 2, 2025

updates tests to match spec ethereum/portal-network-specs#346

@bhartnett for a quick look

@KolbyML KolbyML self-assigned this Jan 2, 2025
if nodes_gossiped_to != 1 {
panic!("We expected to gossip to 1 node instead we gossiped to: {nodes_gossiped_to}");
match client_a.rpc.put_content(content_key.clone(), content_offer_value.encode()).await {
Ok(PutContentInfo { peer_count, .. }) => {
Copy link
Contributor

@bhartnett bhartnett Jan 2, 2025

Choose a reason for hiding this comment

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

Maybe the test should check that the storedLocally flag is true in the response.

Copy link
Member Author

Choose a reason for hiding this comment

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

This assumes the radius is 100 percent, which I don't think we can assume

Copy link
Contributor

@bhartnett bhartnett Jan 2, 2025

Choose a reason for hiding this comment

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

Yes true. I guess it depends on how the nodes are setup in the tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe in the future we can standardize some startup params around this kind of thing

@KolbyML KolbyML merged commit 1e01f7e into ethereum:master Jan 2, 2025
7 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