Skip to content

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
fedacking pushed a commit to lambdaclass/hive that referenced this pull request May 19, 2025
fedacking pushed a commit to lambdaclass/hive that referenced this pull request May 19, 2025
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