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: force unreachability #753

Merged
merged 2 commits into from
Sep 20, 2023
Merged

feat: force unreachability #753

merged 2 commits into from
Sep 20, 2023

Conversation

richard-ramos
Copy link
Member

@richard-ramos richard-ramos commented Sep 19, 2023

Description

Adds a hidden --force-unreachable flag that will force the node to use circuit relay. After some seconds the node will have negotiated a circuit relay address if a circuit relay node is added as static node:

./build/waku --unreachable --staticnode=/dns4/node-01.do-ams3.go-waku.test.statusim.net/tcp/30303/p2p/16Uiu2HAm9vnvCQgCDrynDK1h7GJoEZVGvnuzq84RyDQ3DEdXmcX7 --wss --wss-key=/path/to/key/file --wss-cert=/path/to/cert/file

While testing the functionality with @danisharora099 we noticed that when using an nwaku fleet node, and having wss enabled, the node gets dropped as a peer hence for now I recommend using a node from the gowaku fleet, however the gowaku fleet is returning IP addresses in the list of multiaddresses, so a search/replace must be done to replace the /ip4 address returned by a /dns4 value

This PR also fixes an issue with adding pubsub topics to the peer store that happens when adding a peer for the first time, and changes the TTL for addresses being added to the store since addresses with a ConnectedAddrTTL still had a chance of being removed by identify

@status-im-auto
Copy link

status-im-auto commented Sep 19, 2023

Jenkins Builds

Click to see older builds (6)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 019824f #1 2023-09-19 14:55:40 ~2 min nix-flake 📄log
✔️ 019824f #1 2023-09-19 14:56:11 ~2 min linux 📦deb
✔️ 019824f #1 2023-09-19 14:56:32 ~2 min tests 📄log
✔️ 019824f #1 2023-09-19 14:56:50 ~3 min tests 📄log
✔️ 019824f #1 2023-09-19 14:57:45 ~4 min ios 📦tgz
✔️ 019824f #1 2023-09-19 14:57:45 ~4 min android 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 42a1d55 #2 2023-09-19 20:19:18 ~1 min tests 📄log
✔️ 42a1d55 #2 2023-09-19 20:19:52 ~1 min tests 📄log
✔️ 42a1d55 #2 2023-09-19 20:20:09 ~2 min nix-flake 📄log
✔️ 42a1d55 #2 2023-09-19 20:20:32 ~2 min linux 📦deb
✔️ 42a1d55 #2 2023-09-19 20:21:43 ~3 min android 📦tgz
✔️ 42a1d55 #2 2023-09-19 20:22:15 ~4 min ios 📦tgz
✔️ ae6574f #3 2023-09-20 06:23:14 ~1 min linux 📦deb
✔️ ae6574f #3 2023-09-20 06:23:34 ~1 min tests 📄log
✔️ ae6574f #3 2023-09-20 06:23:49 ~1 min nix-flake 📄log
✔️ ae6574f #3 2023-09-20 06:24:59 ~2 min tests 📄log
✔️ ae6574f #3 2023-09-20 06:25:14 ~3 min android 📦tgz
✔️ ae6574f #3 2023-09-20 06:25:17 ~3 min ios 📦tgz

Copy link
Collaborator

@chaitanyaprem chaitanyaprem left a comment

Choose a reason for hiding this comment

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

LGTM

@chaitanyaprem chaitanyaprem merged commit 003c90f into master Sep 20, 2023
@chaitanyaprem chaitanyaprem deleted the unreachable branch September 20, 2023 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants