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

Open channel to disconnected peer: fundchannel hangs #3456

Closed
s-tikhomirov opened this issue Jan 28, 2020 · 1 comment
Closed

Open channel to disconnected peer: fundchannel hangs #3456

s-tikhomirov opened this issue Jan 28, 2020 · 1 comment
Labels

Comments

@s-tikhomirov
Copy link

Issue and Steps to Reproduce

If I try to open a channel with fundchannel to a disconnected peer, the CLI just hangs. I'd expect it to display an error message along the lines of: "The peer is disconnected. You have to connect to the peer to open a channel.". I observe the same behavior for totally unknown peers and for known but disconnected peers.

getinfo output

{
   "id": "02f67d5b7185ac67172807fc8f9d6b000305e93793332ed5a2087478a69909371e",
   "alias": "clightningB",
   "color": "02f67d",
   "num_peers": 3,
   "num_pending_channels": 0,
   "num_active_channels": 0,
   "num_inactive_channels": 2,
   "address": [],
   "binding": [
      {
         "type": "ipv4",
         "address": "127.0.0.1",
         "port": 9740
      }
   ],
   "version": "v0.8.0-40-g899f5de",
   "blockheight": 1664151,
   "network": "testnet",
   "msatoshi_fees_collected": 0,
   "fees_collected_msat": "0msat",
   "lightning-dir": "/home/sergei/.lightningB/testnet"
}
@cdecker
Copy link
Member

cdecker commented Jan 28, 2020

Since #3314 was merged we will attempt to connect to a peer when we get a fundchannel call and we aren't connected to the node yet. This was added as a usability feature since we got the feedback that this makes it easier.

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

No branches or pull requests

2 participants