CELESTIA_CUSTOM: IPv6 bootstrapper addresses are silently ignored

Open Beginner friendly
#5,448 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
networking

Research direction

Start in nodebuilder/p2p/flags.go and read parseNetworkFromEnv, then check its existing tests for custom network parsing. Reproduce the issue with a bootstrapper list containing both /ip6 and /ip4 addresses. Done means both addresses are registered for the custom network and the unit test passes.

Written by the indexing model from the issue text.

Description

external needs:triage

Celestia Node version: main (nodebuilder/p2p/flags.go)

Steps to reproduce it

Set a custom network whose bootstrapper list contains an IPv6 multiaddr, e.g.

CELESTIA_CUSTOM='private:<genesis_hash>:/ip6/2001:db8::1/tcp/2121/p2p/<peer_id>,/ip4/10.0.0.1/tcp/2121/p2p/<peer_id>'

and start a node.

Expected result

Both bootstrappers are registered for the custom network.

Actual result

No bootstrapper is registered and there is no error. parseNetworkFromEnv splits the value with strings.Split(custom, ":"). An IPv6 multiaddr contains :, so the split returns more than three parts, len(params) == 3 is false, and the whole bootstrapper list is skipped (also the IPv4 entries). The network ID and genesis hash are still parsed, so the node starts on the custom network with no bootstrappers.

Notes

Splitting into at most three parts (strings.SplitN(custom, ":", 3)) keeps the bootstrapper list intact; the network ID and genesis hash cannot contain :. I have a small fix with a unit test (/ip6 + /ip4 peer list) and would like to open a PR for it if that works for you.

This issue was written with help from an AI assistant (Claude Code) and reviewed before submitting.

Dominant language
Go
Stars
1k
Forks
1.1k
Avg merge
1d 22h
Merged PRs (30d)
55

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from celestiaorg/celestia-node

All issues in celestiaorg/celestia-node

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.