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

feat: map correct fleet according to the pubsub topic configured #2015

Closed
wants to merge 2 commits into from

Conversation

danisharora099
Copy link
Collaborator

@danisharora099 danisharora099 commented May 14, 2024

Problem

#2011

Solution

Use the TEST fleet if DefaultPubsubTopic is used

Notes

Contribution checklist:

  • covered by unit tests;
  • covered by e2e test;
  • add ! in title if breaks public API;

Copy link

github-actions bot commented May 14, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
Waku node 181.36 KB (-0.03% 🔽) 3.7 s (-0.03% 🔽) 2.8 s (+53.98% 🔺) 6.4 s
Waku Simple Light Node 181.48 KB (+0.04% 🔺) 3.7 s (+0.04% 🔺) 2 s (-34.07% 🔽) 5.6 s
ECIES encryption 23.12 KB (0%) 463 ms (0%) 685 ms (+125.58% 🔺) 1.2 s
Symmetric encryption 22.58 KB (0%) 452 ms (0%) 391 ms (-6.93% 🔽) 843 ms
DNS discovery 72.49 KB (0%) 1.5 s (0%) 1.1 s (+2.39% 🔺) 2.6 s
Peer Exchange discovery 74.15 KB (0%) 1.5 s (0%) 1.8 s (+75.65% 🔺) 3.3 s
Local Peer Cache Discovery 67.68 KB (0%) 1.4 s (0%) 818 ms (-39.95% 🔽) 2.2 s
Privacy preserving protocols 38.87 KB (0%) 778 ms (0%) 637 ms (+41.51% 🔺) 1.5 s
Waku Filter 111.92 KB (0%) 2.3 s (0%) 1.5 s (+9.93% 🔺) 3.7 s
Waku LightPush 110.39 KB (0%) 2.3 s (0%) 1.3 s (+16.1% 🔺) 3.5 s
History retrieval protocols 110.91 KB (0%) 2.3 s (0%) 1.2 s (-29.69% 🔽) 3.4 s
Deterministic Message Hashing 7.29 KB (0%) 146 ms (0%) 156 ms (-28.08% 🔽) 301 ms

@danisharora099 danisharora099 marked this pull request as ready for review May 14, 2024 11:47
@danisharora099 danisharora099 requested a review from a team as a code owner May 14, 2024 11:47
Copy link
Collaborator

@weboko weboko left a comment

Choose a reason for hiding this comment

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

@danisharora099
Copy link
Collaborator Author

danisharora099 commented May 15, 2024

@danisharora099 danisharora099 requested review from weboko and a team May 15, 2024 11:26
@@ -16,8 +20,14 @@ const DEFAULT_NODE_REQUIREMENTS = {
export function defaultPeerDiscoveries(
pubsubTopics: PubsubTopic[]
): ((components: Libp2pComponents) => PeerDiscovery)[] {
// TODO: add a check to see if it is indeed TWN or if it is a custom network
// https://github.com/waku-org/js-waku/issues/2014
const dnsFleet = pubsubTopics.includes(DefaultPubsubTopic)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@adklempner would this help with the issue we were looking at yesterday in the testing app?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess this PR doesn't work as it didn't introduce any ENR to https://github.com/waku-org/js-waku/blob/master/packages/core/src/lib/predefined_bootstrap_nodes.ts (noticed by Jakub)

Copy link
Collaborator Author

@danisharora099 danisharora099 May 29, 2024

Choose a reason for hiding this comment

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

I guess this PR doesn't work as it didn't introduce any ENR to https://github.com/waku-org/js-waku/blob/master/packages/core/src/lib/predefined_bootstrap_nodes.ts (noticed by Jakub)

@weboko Not sure I follow. Can you explain? What/where do you think an ENR is to be introduced?

Copy link
Collaborator

Choose a reason for hiding this comment

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

All good, I forgot the fact that predefined nodes are not used and only ENR is used for discovery, which I added and it should work.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, following up with deprecation of predefined addresses with #2025

@danisharora099
Copy link
Collaborator Author

superseded by #2031

@danisharora099 danisharora099 deleted the feat/map-correct-fleet branch June 4, 2024 17:53
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.

feat: map/use correct bootstrap nodes fleet according to the configured pubsub topic
2 participants