Inconsistent CJDNS address handling in Local addresses and AddLocal logs #33471

issue w0xlt openend this issue on September 23, 2025
  1. w0xlt commented at 11:22 pm on September 23, 2025: contributor

    When running:

    0./build/bin/bitcoind -daemon -server=1 -onion=127.0.0.1:9050 -externalip=<hostname_addr> -listen -cjdnsreachable
    

    only two Tor addresses appear under Local addresses and no CJDNS addresses in bitcoin-cli -netinfo 4. The log also shows two AddLocal(...) entries for the onion address, but none for the CJDNS address. However, adding a CJDNS peer via addnode ... add works as expected.

    In contrast, running:

    0./build/bin/bitcoind -daemon -listen -cjdnsreachable
    

    shows one Tor address and one CJDNS address in Local addresses. The log also includes one AddLocal(...) for the onion address and one for the CJDNS address, and peer addition works normally.

    This seems inconsistent: in the first case, shouldn’t the CJDNS address also appear in Local addresses and be logged with AddLocal(<cjdns_addr>)?

  2. willcl-ark added the label Bug on Sep 25, 2025
  3. willcl-ark added the label Utils/log/libs on Sep 25, 2025
  4. bitcoin deleted a comment on Sep 30, 2025
  5. big14way commented at 8:29 am on November 8, 2025: none
    @willcl-ark please assign me this issue i can fix this bug
  6. willcl-ark commented at 11:30 am on November 10, 2025: member
    @big14way you don’t need to be assigned an issue to work on it in this project. Opening a pull request (please read CONTRIBUTING.md frist) and linking it to this issue in the PR description is all that’s needed.
  7. big14way commented at 9:49 am on November 11, 2025: none
    @willcl-ark thank you for clarifyingi will look through the CONTRIBUTING.md frist i appreciate it

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-11-14 21:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me