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(tests): several enrtree + static multiaddr for bootstrap #1448

Merged
merged 9 commits into from
Aug 11, 2023

Conversation

danisharora099
Copy link
Collaborator

@danisharora099 danisharora099 commented Jul 31, 2023

This PR adds a test, and to showcase, the usage of multiple ENR trees and also the ability to add specific multiaddrs along with it.

@danisharora099 danisharora099 changed the title add: test for multi enrtree + static multiaddr feat: test for multi enrtree + static multiaddr Jul 31, 2023
@github-actions
Copy link

github-actions bot commented Jul 31, 2023

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
Waku core 30.27 KB (0%) 606 ms (0%) 1.8 s (+28.72% 🔺) 2.4 s
Waku Simple Light Node 235.44 KB (0%) 4.8 s (0%) 5.4 s (+5.35% 🔺) 10.1 s
ECIES encryption 28.54 KB (0%) 571 ms (0%) 2.5 s (+126.1% 🔺) 3.1 s
Symmetric encryption 28.55 KB (0%) 571 ms (0%) 2 s (+47.85% 🔺) 2.6 s
DNS discovery 108.36 KB (0%) 2.2 s (0%) 3.5 s (+2.94% 🔺) 5.6 s
Privacy preserving protocols 122.73 KB (0%) 2.5 s (0%) 2.9 s (-18.09% 🔽) 5.4 s
Light protocols 31.73 KB (0%) 635 ms (0%) 976 ms (-47.46% 🔽) 1.7 s
History retrieval protocols 30.95 KB (0%) 620 ms (0%) 1.2 s (-15.55% 🔽) 1.8 s
Deterministic Message Hashing 5.78 KB (0%) 116 ms (0%) 294 ms (-56% 🔽) 410 ms

@danisharora099 danisharora099 marked this pull request as ready for review August 7, 2023 12:09
@danisharora099 danisharora099 requested a review from a team as a code owner August 7, 2023 12:09
packages/tests/tests/waku.node.spec.ts Outdated Show resolved Hide resolved
bootstrap({ list: [multiAddrWithId.toString()] }),
wakuDnsDiscovery(
[enrTree["PROD"], enrTree["TEST"]],
NODE_REQUIREMENTS
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we make this value optional if not already?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good idea - addressed here: #1466

@@ -70,7 +70,6 @@
"@types/dockerode": "^3.3.17",
"@types/mocha": "^10.0.1",
"@types/tail": "^2.2.1",
"@waku/sdk": "*",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@waku/sdk was being init twice in devDependencies for some reason and wasn't throwing an error 👀

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it even shouldn't as the last overrides former from JS point of view, but it's interesting how it got there

@danisharora099 danisharora099 changed the title feat: test for multi enrtree + static multiaddr feat(tests): several enrtree + static multiaddr for bootstrap Aug 9, 2023
@danisharora099 danisharora099 merged commit 7227657 into master Aug 11, 2023
10 checks passed
@danisharora099 danisharora099 deleted the feat/multienr-test branch August 11, 2023 08:22
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.

3 participants