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: make safe_network examples work with live networks #1313

Open
happybeing opened this issue Feb 15, 2024 · 0 comments
Open

feat: make safe_network examples work with live networks #1313

happybeing opened this issue Feb 15, 2024 · 0 comments
Labels
Client Help Needed Extra attention is needed

Comments

@happybeing
Copy link
Contributor

Currently examples such as the Registers example (see README) only work on a local testnet. For example:

cargo run --example registers --features=local-discovery -- --user alice --reg-nickname myregister

I tried variations on this command with ValentinesNet with a couple of random peers taken from the log of one of my participating nodes. For example:

export SAFE_PEERS="/ip4/46.101.12.135/udp/42763/quicv1/p2p/12D3KooWQGTGdhfVFHC6zGs7H25F1rdRyoictZYz4VkTqP8qag37"

cargo run --example registers --features=network-contacts -- --user alice --reg-nickname myregister
# and
cargo run --example registers -- --user alice --reg-nickname myregister

I always get the same error:

Starting SAFE client...
Error: Could not connect to the network in 30s

Location:
    sn_node/examples/registers.rs:55:18

It would be useful I think to be able to run examples (that make sense) with a live network. (forum post)

@JasonPaulGithub JasonPaulGithub self-assigned this Mar 13, 2024
@JasonPaulGithub JasonPaulGithub removed their assignment Mar 27, 2024
@JasonPaulGithub JasonPaulGithub added the Help Needed Extra attention is needed label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client Help Needed Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants