Skip to content

Wrong port is gossiped, in addition to correct one #5305

@laanwj

Description

@laanwj

I'm having an issue where the gossiped port is wrong, possibly part of the time. It's supposed to be 9736, but 9735 ends up in the list too:

% lcli listnodes [M]
{
   "nodes": [
      {
         "nodeid": "[M]",
…
         "addresses": [
            {
               "type": "ipv4",
               "address": "[A]",
               "port": 9735
            },
            {
               "type": "ipv4",
               "address": "[A]",
               "port": 9736
            },
            {
               "type": "ipv6",
               "address": "[B]",
               "port": 9736
            },
            {
               "type": "torv3",
               "address": "[C].onion",
               "port": 9736
            }
         ]
      }
   ]
}

I not only see this in my own listnodes, other nodes and services do, as well. I do not have anything running on port 9735, FWIW, there's only one lightningd on this system. I've only ever seen it happen for IPv4.

Relevant configuration is:

    --proxy 127.0.0.1:9050 \
    --addr '0.0.0.0:9736' \
    --addr '[::]:9736' \
    --announce-addr '[C].onion:9736' \

getinfo output shows, correctly:

{
   "id": "[M]",
…
   "address": [
      {
         "type": "ipv4",
         "address": "[A]",
         "port": 9736
      },
      {
         "type": "ipv6",
         "address": "[B]",
         "port": 9736
      },
      {
         "type": "torv3",
         "address": "[C].onion",
         "port": 9736
      }
   ],
   "binding": [
      {
         "type": "ipv4",
         "address": "0.0.0.0",
         "port": 9736
      },
      {
         "type": "ipv6",
         "address": "::",
         "port": 9736
      }
   ],
   "version": "v0.11.0.1-36-g74ddc15",
…
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions