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

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-09-26 15:13 UTC

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