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

chore: upgrade to libp2p v2 #2143

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

chore: upgrade to libp2p v2 #2143

wants to merge 13 commits into from

Conversation

danisharora099
Copy link
Collaborator

Copy link

github-actions bot commented Sep 19, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
Waku node 86.4 KB (+0.66% 🔺) 1.8 s (+0.66% 🔺) 14.8 s (+43.63% 🔺) 16.5 s
Waku Simple Light Node 136.94 KB (-0.5% 🔽) 2.8 s (-0.5% 🔽) 19.2 s (+59.69% 🔺) 21.9 s
ECIES encryption 22.88 KB (0%) 458 ms (0%) 6.2 s (+46.09% 🔺) 6.7 s
Symmetric encryption 22.37 KB (0%) 448 ms (0%) 2.6 s (-48.44% 🔽) 3 s
DNS discovery 70.6 KB (-3.15% 🔽) 1.5 s (-3.15% 🔽) 13.7 s (+54.83% 🔺) 15.1 s
Peer Exchange discovery 71.84 KB (-3.05% 🔽) 1.5 s (-3.05% 🔽) 12.1 s (+15.44% 🔺) 13.5 s
Local Peer Cache Discovery 65.17 KB (-4.22% 🔽) 1.4 s (-4.22% 🔽) 8.6 s (-22.57% 🔽) 9.9 s
Privacy preserving protocols 76.12 KB (+0.14% 🔺) 1.6 s (+0.14% 🔺) 8.8 s (-36.26% 🔽) 10.4 s
Waku Filter 80.95 KB (+0.8% 🔺) 1.7 s (+0.8% 🔺) 16.6 s (+61.42% 🔺) 18.2 s
Waku LightPush 75.68 KB (+0.87% 🔺) 1.6 s (+0.87% 🔺) 12.3 s (-12.97% 🔽) 13.8 s
History retrieval protocols 77.71 KB (+0.89% 🔺) 1.6 s (+0.89% 🔺) 9.6 s (-25.1% 🔽) 11.1 s
Deterministic Message Hashing 7.39 KB (0%) 148 ms (0%) 2.7 s (+19.15% 🔺) 2.8 s

@weboko
Copy link
Collaborator

weboko commented Oct 8, 2024

Have no questions to the PR, we definitely need to upgrade libp2p.
But let's postpone till #2135 is merged.

It is risky to include into next release without proper dogfooding and we have some projects requiring #2137 and #2158

@danisharora099
Copy link
Collaborator Author

It is risky to include into next release without proper dogfooding and we have some projects requiring #2137 and #2158

Tests passing, PR is ready. There shouldn't be anything to dogfood with this internal upgrade, especially considering all tests now pass.

Merging it would also resolve #2174 @weboko

@weboko
Copy link
Collaborator

weboko commented Oct 10, 2024

@danisharora099 did you try dogfooding it? I haven't but I'd like to have it done in various contexts before we merge

Contexts to check:

  • how long and good light push functions
  • is there any problems with outbound / inbound streams and connections
  • are events propagating the same way we expect them: peer connect and disconnect, identify
  • etc

Let's do this on Monday and if nothing caught - we can merge.

@danisharora099 danisharora099 force-pushed the chore/libp2p-v2 branch 2 times, most recently from cb48592 to c3edbec Compare October 16, 2024 12:19
enr = await EnrCreator.fromPeerId(peerId);
privateKey = await getPrivateKeyFromPeerId(peerId);
console.log(enr);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
console.log(enr);

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