Bitcoin Forum

Bitcoin => Electrum => Topic started by: mk3000 on October 04, 2020, 01:31:37 AM



Title: Electrum stuck at "Please wait" window after closing lightning network channel
Post by: mk3000 on October 04, 2020, 01:31:37 AM
Hi. I was using the lightning network with Electrum 4.0.3 in linux

I opened a channel, sent a few payments (first failed, a couple worked, then the last 3 failed) and decided to close the channel Now my wallet seems to be stuck showing this small window that says "Please wait" and I can't click anywhere else on the actual Electrum wallet behind the pop up. It's been stuck there for about 45 minutes and I haven't tried to close it or anything.

Here's a screenshot

https://i.imgur.com/tDbOHQE.png

Any help on what to do here would be great. thanks!


Title: Re: Electrum stuck at "Please wait" window after closing lightning network channel
Post by: jackg on October 04, 2020, 01:52:17 AM
Can you open a new instance of the wallet and check if the channel is closed?

Or check the multisig address on a block explorer to see if the funds have been sent? It could just be that the gui has frozen.


Title: Re: Electrum stuck at "Please wait" window after closing lightning network channel
Post by: mk3000 on October 04, 2020, 02:01:17 AM
Can you open a new instance of the wallet and check if the channel is closed?

Or check the multisig address on a block explorer to see if the funds have been sent? It could just be that the gui has frozen.

Thank you for replying. I finally closed the small windows to see if the gui was frozen but it did close.

This is what the channel details show now

https://i.imgur.com/bnzresx.png

I checked the address and funds are still there.
https://blockchair.com/bitcoin/address/bc1qdd9gcr9tsrxq4e4zkkuhcgl3m7dkns8ndm789ewm8r05l3hcp60qdhdv8d

Not sure what it means that the channel state is "SHUTDOWN" but funds still there?
thanks


Title: Re: Electrum stuck at "Please wait" window after closing lightning network channel
Post by: jackg on October 04, 2020, 02:14:20 AM
Is that address yours or does it belong to the channel? The address that funded it was multisig (unless I got script hash the wrong way round).

I'm not sure what shutdown actually means but it probably means it's in the process of ending the channel. It might either have to wait for a htlc to stop being enforceable or to wait for the other party to cooperate in channel closure (if the other party don't participate, you might be waiting 2 days to 2 weeks for the funds to come back, but within that time they're pretty safe afaict).


Title: Re: Electrum stuck at "Please wait" window after closing lightning network channel
Post by: mk3000 on October 04, 2020, 02:26:11 AM
Is that address yours or does it belong to the channel? The address that funded it was multisig (unless I got script hash the wrong way round).

I'm not sure what shutdown actually means but it probably means it's in the process of ending the channel. It might either have to wait for a htlc to stop being enforceable or to wait for the other party to cooperate in channel closure (if the other party don't participate, you might be waiting 2 days to 2 weeks for the funds to come back, but within that time they're pretty safe afaict).

according to Electrum this is the funding TX
https://blockchair.com/bitcoin/transaction/a40144f59979ec3ccea3c9803d1f5e52797b39d95bec9d305a060e41f1cc9189

which sent funds to this address
https://blockchair.com/bitcoin/address/bc1qdd9gcr9tsrxq4e4zkkuhcgl3m7dkns8ndm789ewm8r05l3hcp60qdhdv8d

This isn't my address so I guess it belongs to the channel.

When I click "close channel" I get the small "please wait" window again. I close it and nothing happens. Channel status remains the same "SHUTDOWN"

there's an option to force close the channel, but since I'm not sure how long that will take (weeks?) I don't want to use it unless I absolutely have to.

thanks again for your time trying to help me, really appreciate it


Title: Re: Electrum stuck at "Please wait" window after closing lightning network channel
Post by: mk3000 on October 04, 2020, 02:43:12 AM
Not entirely sure what happened.  I tried closing once more and this time the channel did get closed and funds are coming back.

I'm guessing something was wrong with the channel from the beginning because a lot of payment failed?

Thanks for the help



Title: Re: Electrum stuck at "Please wait" window after closing lightning network channel
Post by: jackg on October 04, 2020, 02:43:34 AM

Just tried it on my electrum wallet:

It asked to confirm the close and I got the please wait and it froze for about a minute.
It then pasted a transaction ID and said the channel had been closed successfully.

Could you give me the ID of the node you're trying to connect to (you could DM it me if you want to maintain a level of privacy, include the domain and port).

It should be something like
ID:name:port

I'd need it in plaintext to be able to run a test on it...
no longer needed unless you still want to test it I'm happy to... It could've just been jittery Internet.

Imo payments are failing atm because not everyone is connected up well enough to each other and route finding fails when nodes go offline. It'll evolve though...


Title: Re: Electrum stuck at "Please wait" window after closing lightning network channel
Post by: Abdussamad on October 04, 2020, 04:46:20 AM
you should file a bug report on github https://github.com/spesmilo/electrum/issues