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

Peerswap CLN lists disconnected peers as active #312

Open
Impa10r opened this issue Sep 8, 2024 · 2 comments
Open

Peerswap CLN lists disconnected peers as active #312

Impa10r opened this issue Sep 8, 2024 · 2 comments

Comments

@Impa10r
Copy link
Contributor

Impa10r commented Sep 8, 2024

Even if the peer has been offline since the plugin started. So, when you try to swap, it fails with "-1:fundingChannels is not connected". Latest commit.

$ lcli peerswap-listpeers
[
...
  {
      "nodeid": "020a654db4feba771ba2f82b9e97297d6c5294ddd40f167c6538149c162e4aa63c",
      "swaps_allowed": true,
      "supported_assets": [
         "btc",
         "lbtc"
      ],
      "channels": [
         {
            "short_channel_id": "2902458x897x0",
            "local_balance": 167000,
            "remote_balance": 33000,
            "state": "CHANNELD_NORMAL"
         }
...
]

$ lcli listpeers
{
   "peers": [
      {
...
      },
      {
         "id": "020a654db4feba771ba2f82b9e97297d6c5294ddd40f167c6538149c162e4aa63c",
         "connected": false,
         "num_channels": 1,
...
}

It knows that it cannot connect:

2024-09-08T09:18:04.033Z DEBUG   020a654db4feba771ba2f82b9e97297d6c5294ddd40f167c6538149c162e4aa63c-connectd: Failed connected out: All addresses failed: Error connecting to gzwoaaqw7jf33cg7sxzedsefulscvpal5ys455eke24owb34w2d4dqqd.onion: Tor server reply: host unreachable. gzwoaaqw7jf33cg7sxzedsefulscvpal5ys455eke24owb34w2d4dqqd.onion:9735: Connection establishment: Connection refused. 10.21.21.9:9735: Connection establishment: Connection timed out. 
2024-09-08T09:18:04.033Z DEBUG   020a654db4feba771ba2f82b9e97297d6c5294ddd40f167c6538149c162e4aa63c-lightningd: Will try reconnect in 2 seconds

@grubles
Copy link
Collaborator

grubles commented Sep 8, 2024

What happens once peerswap tries polling the remote peer?

@Impa10r
Copy link
Contributor Author

Impa10r commented Sep 9, 2024

What happens once peerswap tries polling the remote peer?

I cannot identify any polling attempts in my log. How do they look? I only see receiving polls:
2024-09-08T09:43:51.809Z DEBUG plugin-peerswap: Received poll from peer 020a654db4feba771ba2f82b9e97297d6c5294ddd40f167c6538149c162e4aa63c: {\"version\":3,\"assets\":[\"btc\",\"lbtc\"],\"peer_allowed\":true}, but only after the connection was established.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants