Pages:
Author

Topic: Electrum Lightning Network walkthrough - page 2. (Read 4947 times)

legendary
Activity: 1820
Merit: 2700
Crypto Swap Exchange
October 03, 2022, 02:52:29 AM


This topic deserves to be at the top.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
February 13, 2022, 10:15:41 PM
-snip-
Probably I should give up all further attempts to make direct LN channel between   my Electrum wallets.  >:( 
Same here like I've mentioned, that confirmed that I'm not the only one having trouble establishing a channel between two Electrum. :)

Try to post a new issue on Electrum's Github Repository: github.com/spesmilo/electrum/issues
Maybe the Devs have a workaround. But first, use 'search' to look for similar issues .
hero member
Activity: 714
Merit: 1298
February 13, 2022, 06:01:24 AM
-snip-
Thanks, that helped. Now  I have the choice between two options one of which is Remote Node ID and this is exactly  what I would like to use. But I'd like to have channel exclusively between two wallets I own, no middle-position node in between. Is that possible or the only way for me  to have my wallets LN-connected  is to establish connection of each of two wallets to one and the same  known peer?
Those two are the only option if "Trampoline Routing" is enabled.
You can customize the remote node once you've disabled the said feature in the settings.

However, I haven't succeeded yet with creating a channel between two Electrum wallets.
You can try though - by providing each other's 'Lightning Node ID' as the "Remote Node ID" (Wallet->Information) followed by the IP address and port.
eg: 02d50fdf1806b54aee46a0ed8c6d8512bee87e88e25029f3384a983c43c5d6a16c@111.111.111.111:9735
But like I've said, it never worked at my end.

I have spent two days trying to stitch directly my two Electrum clients by opening LN channel and all  my attempts have ended with CanceledError(). My both electrum clients were online showing fully sync LN graph.   The format for remote node ID had been properly chosen.

The communication  between two of my clients  was  established right off the bat after opening separate channels for each client with the same public LN node ("endurance" in my case).

Probably I should give up all further attempts to make direct LN channel between   my Electrum wallets.  Angry 
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
February 10, 2022, 09:36:35 AM
-snip-
Thanks, that helped. Now  I have the choice between two options one of which is Remote Node ID and this is exactly  what I would like to use. But I'd like to have channel exclusively between two wallets I own, no middle-position node in between. Is that possible or the only way for me  to have my wallets LN-connected  is to establish connection of each of two wallets to one and the same  known peer?
Those two are the only option if "Trampoline Routing" is enabled.
You can customize the remote node once you've disabled the said feature in the settings.

However, I haven't succeeded yet with creating a channel between two Electrum wallets.
You can try though - by providing each other's 'Lightning Node ID' as the "Remote Node ID" (Wallet->Information) followed by the IP address and port.
eg: 02d50fdf1806b54aee46a0ed8c6d8512bee87e88e25029f3384a983c43c5d6a16c@111.111.111.111:9735
But like I've said, it never worked at my end.
hero member
Activity: 714
Merit: 1298
February 10, 2022, 09:11:41 AM
-snip- but can not move further to open LN channel in Electrum connected to testnet as the wallet's Open Channel button remains in the gray state. The wallet is topped up with 0.01 tBTC which, from my understanding, is enough for channel support. The button remains inactive no matter whether trampoline is disabled  or not. I would appreciate any suggestion on how to overcome things that block me from  LN channel opening with Electrum.
The two things that you may have missed are:
  • Lightning should be enabled in the menu "Wallet->Information" if it's not ticked at least once yet (if it's created by an older version).

Thanks, that helped. Now  I have the choice between two options one of which is Remote Node ID and this is exactly  what I would like to use. But I'd like to have channel exclusively between two wallets I own, no middle-position node in between. Is that possible or the only way for me  to have my wallets LN-connected  is to establish connection of each of two wallets to one and the same  known peer?

Edit. Sorry, got it how can I do what I want. All I need is  to look again into Wallet->Information to get ID for my second node  Wink
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
February 10, 2022, 08:41:02 AM
-snip- but can not move further to open LN channel in Electrum connected to testnet as the wallet's Open Channel button remains in the gray state. The wallet is topped up with 0.01 tBTC which, from my understanding, is enough for channel support. The button remains inactive no matter whether trampoline is disabled  or not. I would appreciate any suggestion on how to overcome things that block me from  LN channel opening with Electrum.
The two things that you may have missed are:
  • Lightning should be enabled in the menu "Wallet->Information" if it's not ticked at least once yet (if it's created by an older version).
  • The wallet's script (address) type should be Native Segwit ('bc1' address), other types including 2fa aren't compatible with Lightning.
hero member
Activity: 714
Merit: 1298
February 10, 2022, 08:22:54 AM
Hi, I'm new to the Lightning Network and I'd like to try it firstly with my favourite wallet, electrum, even if I haven't heard the best about its LN functionalities. I believe that this is the thread to discuss my problems/queries about it.

I've opened Electrum Testnet and I've enabled LN. I want to open a channel to transact some funds with my other wallet.

Hi, probably I’m at the same stage as you were a year ago but can not move further to open LN channel in Electrum connected to testnet as the wallet's Open Channel button remains in the gray state. The wallet is topped up with 0.01 tBTC which, from my understanding, is enough for channel support. The button stays inactive no matter whether trampoline is disabled  or not. I would appreciate any suggestion on how to overcome things that block me from  LN channel opening with Electrum.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
December 09, 2021, 09:46:55 PM
-snip-
But I get "mpp_timeout" and "transaction failed". What could be the reason?
I could also be your connection to the Lightning Network, Electrum takes time to fully connect if you're not using "Trampoline Routing" in the setting.
You can check the progress by clicking the yellow lightning icon at the lower-right hand side.
legendary
Activity: 1876
Merit: 3139
December 09, 2021, 12:37:43 PM
But I get "mpp_timeout" and "transaction failed". What could be the reason?

Since you used that channel in the past and it worked, it looks like some node in the selected routing path fails to route a part of your payment. If there was some other route available, your wallet would probably try it.
member
Activity: 73
Merit: 10
Creating Smart Contracts !!!
December 09, 2021, 11:28:07 AM
Guys help. Trying to send via LN, not the first time.

The channel is open. There are enough limits. Last update.

But I get "mpp_timeout" and "transaction failed". What could be the reason?
member
Activity: 80
Merit: 10
October 18, 2021, 04:34:44 AM
As far as I can see in the repository, there's no discussion about enabling public channels in 'Issues' and 'Pull Requests'.

Filtered with "lightning" tag:
You can ask the developers themselves or post a "pull-request wanted" topic in the 'Issues' tab.

Alright, Thanks a lot for your answer
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
October 17, 2021, 10:21:57 PM
are there any plans of allowing public lightning channels on Electrum?, -snip-
As far as I can see in the repository, there's no discussion about enabling public channels in 'Issues' and 'Pull Requests'.

Filtered with "lightning" tag:
You can ask the developers themselves or post a "pull-request wanted" topic in the 'Issues' tab.
member
Activity: 80
Merit: 10
October 17, 2021, 09:43:28 PM
Hello,

are there any plans of allowing public lightning channels on Electrum?, thus (thus enable charging payment routing fees)?
legendary
Activity: 1876
Merit: 3139
October 16, 2021, 06:40:09 AM
Any ideas why this is happening?

Maybe it's a server related issue. Have you tried changing the server you are connected to a few times? Some implementations do not work well with the built-in Lightning Network functionality. You can also report your problem here if you still can't get it to work. You can also enable logging and share the logs with us.
newbie
Activity: 2
Merit: 1
October 14, 2021, 12:20:58 PM
All the last channels I have opened in Electrum 4.1.5 recently got stuck on the 'OPENING' state (after more than 3 confirmations) and my LN payments are all failing. It was working fine the first 2 times I have use LN in Electrum.

When I checked the details of the channels, I can see this under Payments (HTPCs):

Fullfilled HTLCs
HTLC in current commitement transaction
Failed HTLCs

This issue is currently happening regardless if I'm using trampoline routing or not.

Any ideas why this is happening?
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
October 02, 2021, 03:18:41 AM
By going though commands.py, I didn't find any command that fits those purpose.
https://github.com/spesmilo/electrum/blob/master/electrum/commands.py#L963-L966

For number 3, the alternative to sending some funds from Electrum to your btcpayserver is using "Reverse Swap".
https://github.com/spesmilo/electrum/blob/master/electrum/commands.py#L1230-L1232
But setting lightning_amount and onchain_amount will be tricky in the daemon because of the deductions: Boltz's service fee and the mining fee that they'll use for the on-chain return payment.
newbie
Activity: 2
Merit: 1
October 02, 2021, 02:18:22 AM
How can I disable trampoline routing while running electrum in daemon mode? -snip-
Use this command to disable "trampoline routing":
Code:
electrum setconfig -o use_gossip true

Alternatively, find the "config" file in your electrum data directory, edit it using a text editor, then insert this line:
Code:
"use_gossip": true,

Note: "true" because trampoline routing disables gossip.

Thanks



More questions on electrum

1. Is there a notify function for lightenigng request created using electrum that works like the one for a normal address: `electrum notify
`. I am currently using long pulling to get the status of a lightening request using the rhash and getrequest method.

2. Is there a way to hide some rpc functions like getseed? A walkaround that I am using is to build a proxy that validates the methods being called.

3. Is there a way for me to provide an inbound capacity from my btcpayserver to electrum?

I am sorry if my question is too much. I am trying to find a better way to add lightening to my website and the website of my clients

[moderator's note: consecutive posts merged]
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
October 02, 2021, 01:44:41 AM
How can I disable trampoline routing while running electrum in daemon mode? -snip-
Use this command to disable "trampoline routing":
Code:
electrum setconfig -o use_gossip true

Alternatively, find the "config" file in your electrum data directory, edit it using a text editor, then insert this line:
Code:
"use_gossip": true,

Note: "true" because trampoline routing disables gossip.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
October 02, 2021, 01:36:38 AM
How can I disable trampoline routing while running electrum in daemon mode? I am running electrum on a server without a UI and I want to be able to connect to my btcpayserver lightening network.

Go to Tools —> Preferences —> Lightning and uncheck the Trampoline usage. Restart electrum and now you'll be able to open a channel on any node you want.


Edit: Nevermind, read nc50lc's reply.
newbie
Activity: 2
Merit: 1
October 02, 2021, 01:33:09 AM
How can I disable trampoline routing while running electrum in daemon mode? I am running electrum on a server without a UI and I want to be able to connect to my btcpayserver lightening network.
Pages:
Jump to: