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

bug: "Error: node: failed to start: wrong network in core.ip endpoint, expected mocha-4, got celestia" is incorrect #3884

Closed
jcstein opened this issue Oct 24, 2024 · 1 comment · Fixed by #3885
Assignees
Labels
external Issues created by non node team members needs:triage

Comments

@jcstein
Copy link
Member

jcstein commented Oct 24, 2024

Incorrect Network Mismatch Error Message

Current Behavior

When starting a light node without specifying --p2p.network mocha, but using a mocha RPC endpoint (--core.ip rpc-mocha.pops.one), the error message shows:

Error: node: failed to start: wrong network in core.ip endpoint, expected mocha-4, got celestia

Expected Behavior

The error message should be reversed to correctly reflect the expected vs actual network:

Error: node: failed to start: wrong network in core.ip endpoint, expected celestia, got mocha-4

Why This Needs Fixing

The current error message is confusing because:

  1. When --p2p.network is not provided, the node defaults to expecting the "celestia" network
  2. The RPC endpoint (rpc-mocha.pops.one) is actually on the mocha-4 network
  3. Therefore, the error should indicate that we expected "celestia" (the default) but got "mocha-4" (from the endpoint)

Steps to Reproduce

  1. Start a light node with:
celestia light start --core.ip rpc-mocha.pops.one
  1. Observe incorrect error message

Additional Context

This appears to be a simple string swap in the error message construction, where the expected and actual network values are reversed.

@github-actions github-actions bot added needs:triage external Issues created by non node team members labels Oct 24, 2024
@jcstein jcstein changed the title bug: "Error: node: failed to start: wrong network in core.ip endpoint, expected mocha-4, got celestia" is misleading bug: "Error: node: failed to start: wrong network in core.ip endpoint, expected mocha-4, got celestia" is incorrect Oct 24, 2024
@jcstein
Copy link
Member Author

jcstein commented Oct 24, 2024

on version

Semantic version: 0.18.2-mocha
Commit: 4309c8349857638b033a2a278da0f8ab182fdb26
Build Date: 2024-10-07T08:21:56Z
System version: arm64/darwin
Golang version: go1.23.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issues created by non node team members needs:triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant