Bitcoin Forum

Bitcoin => Electrum => Topic started by: Player552362 on July 14, 2024, 01:19:51 PM



Title: Payment error when using Lightning
Post by: Player552362 on July 14, 2024, 01:19:51 PM
Hi,

I created a wallet and opened 3 channels in lightning:

2 with ACINQ for around 0.018btc in total

1 with trampoline hodlisterco for around 0.003

I got a sending liquidity of 0.1721446btc (already discounting the btc blocked as exiting fee) and I wanted to do a swap in Boltz to increase my receiving capacity to be able to receive payments. However, when I try to pay the invoice for a 0.017 swap I get the next error:

Payment failed: HTLC value sum (sum of pending htlcs: 0.0 sat plus new htlc: 931010.684 sat) would exceed max allows 428197.0 sat

What is this problem and how can I solve it?

Thank you!


Title: Re: Payment error when using Lightning
Post by: Player552362 on July 14, 2024, 01:34:12 PM
I guess that there is a limit for how much I can send in one payment, if that is true, I could either:
  • divide the swap in 2
  • increase the size of one of the three channels
  • create a new channel

Am I right?


Title: Re: Payment error when using Lightning
Post by: BlackHatCoiner on July 14, 2024, 04:40:37 PM
2 with ACINQ for around 0.018btc in total

1 with trampoline hodlisterco for around 0.003

I got a sending liquidity of 0.1721446btc
How's that possible? Your total sending capacity should be 0.018 + 0.003 = 0.0183.

What is this problem and how can I solve it?
Your client triggers the following line: https://github.com/spesmilo/electrum/blob/76f5d6ceb07b49e403f63488832fd6cb397ee91b/electrum/lnchannel.py#L995. The exact same issue has been posted in here: https://github.com/spesmilo/electrum/issues/8533.

May I ask, is there any of your channels' UTXO worth around 428,197 sat?


Title: Re: Payment error when using Lightning
Post by: Player552362 on July 14, 2024, 06:22:09 PM
Yeah sorry, I missed a 0, the sending capacity is 0.01721446btc.

And no, there isnt any channels' UTXO worth 428,197 sats. I opened the channels and didnt make any transactions. So they are worth:
  • ACINQ 813,627 sats
  • trampoline hodlisterco 294,015 sats
  • ACINQ 951,551 btc

I see, they havent found a solution in the post you mentioned, have they?


Title: Re: Payment error when using Lightning
Post by: nc50lc on July 15, 2024, 08:01:47 AM
I see, they havent found a solution in the post you mentioned, have they?
Yes they haven't, they will close all related issues once the main issue is solved.

But have you disabled "Use trampoline routing" config in "Tools->Preferences->Lightning"?
Can you try it with that option disabled but let Electrum sync to the lightning network (check lightning logo next to the network icon) before trying to send.
Don't forget to return the setting after trying since it's resource heavy.


Title: Re: Payment error when using Lightning
Post by: Player552362 on July 15, 2024, 01:45:14 PM
Hi,

Yeah, I tried but it is still giving me error.

Great thanks for trying to help me anyway, really appreciate it. In the meantime I will be using a more noob-friendly app for lightning, I will maybe come back to Electrum on the future. 

:)