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!: upgrade to [email protected] #1400

Merged
merged 49 commits into from
Jul 25, 2023
Merged

feat!: upgrade to [email protected] #1400

merged 49 commits into from
Jul 25, 2023

Conversation

weboko
Copy link
Collaborator

@weboko weboko commented Jun 9, 2023

Problem

We have to update libp2p to a newer version to bring new things such as services (#1392) and unlock us to use WebRTC transport for our experiments (#1181).

Solution

Update the lib.

Notes

@github-actions
Copy link

github-actions bot commented Jun 15, 2023

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
Waku core 29.78 KB (+0.04% 🔺) 596 ms (+0.04% 🔺) 2.8 s (+14.71% 🔺) 3.4 s
Waku Simple Light Node 235.68 KB (-20.81% 🔽) 4.8 s (-20.81% 🔽) 10 s (-26.73% 🔽) 14.7 s
ECIES encryption 28.54 KB (0%) 571 ms (0%) 3.1 s (+27.95% 🔺) 3.7 s
Symmetric encryption 28.55 KB (0%) 571 ms (0%) 2.7 s (+17.35% 🔺) 3.3 s
DNS discovery 108.35 KB (-0.11% 🔽) 2.2 s (-0.11% 🔽) 5.4 s (-10.43% 🔽) 7.6 s
Privacy preserving protocols 122.28 KB (-9.79% 🔽) 2.5 s (-9.79% 🔽) 5.7 s (-9.85% 🔽) 8.2 s
Light protocols 31.85 KB (+0.17% 🔺) 638 ms (+0.17% 🔺) 3.4 s (+31.24% 🔺) 4.1 s
History retrieval protocols 30.49 KB (+0.2% 🔺) 610 ms (+0.2% 🔺) 2.9 s (-7.43% 🔽) 3.5 s
Deterministic Message Hashing 5.78 KB (0%) 116 ms (0%) 836 ms (-34.84% 🔽) 951 ms

@weboko weboko marked this pull request as ready for review June 20, 2023 22:58
@weboko weboko requested a review from fryorcraken as a code owner June 20, 2023 22:58
@weboko
Copy link
Collaborator Author

weboko commented Jun 20, 2023

Apart from the libp2p upgrade there are some type changes such as introduction of IBaseProtocol and definition of Libp2p interface on our side with services in it.

There is still one test failing for Peer Exchange - looking into it and I am still validating the changes within js-waku-examples manually.

);
return tags;
try {
const peer = await this.libp2p.peerStore.get(peerId);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

context: Now all methods on PersistentPeerStore that libp2p uses are throwing so it is up to us how we handle that.

...pubsubService,
...options?.services,
},
}) as any as Libp2p; // TODO: make libp2p include it;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Still need to check if it is possible to get rid of.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do not see any way of removing it. Merging with it for now

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.

Update Libp2p to latest version (0.44.0+)
2 participants