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

Default RPC endpoint (mynano.ninja) seems to be offline permanently #16

Open
kseistrup opened this issue Mar 19, 2024 · 1 comment
Open

Comments

@kseistrup
Copy link

The default RPC endpoint, https://mynano.ninja/api/node has been offline for quite a while, and the hostname doesn't even have an associated IPv4 or IPv6 address anymore.

While this can, of course, be overcome by using the -r/--rpc flag, it may be a hurdle for newcomers and it would be prudent to change the default node to something that works, e.g.:

    https://rainstorm.city/api

See also #15.

🙏

archlinux-github pushed a commit to archlinux/aur that referenced this issue Mar 19, 2024
@kseistrup
Copy link
Author

kseistrup commented Mar 19, 2024

PS: To make the fix more resilient, we could introduce and environment variable, e.g. $GONANO_DEFAULT_RPC_ENDPOINT (or something similarly descriptive), such that gonano uses the value of said variable if it has been set, and otherwise falls back to a hardcoded value.

In pseudo code:

if "--rpc" option is used:
    rpc_endpoint="$user_value"
elif "$GONANO_DEFAULT_RPC_ENDPOINT" != "":
    rpc_endpoint="$GONANO_DEFAULT_RPC_ENDPOINT"
else:
    rpc_endpoint="https://rainstorm.city/api"

edit: typo

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

No branches or pull requests

1 participant