Bitcoin Forum
September 01, 2024, 06:20:39 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Lightning] Receiving capacity stucks at 0 BTC  (Read 91 times)
BlackHatCoiner (OP)
Legendary
*
Offline Offline

Activity: 1624
Merit: 7985


Bitcoin is a royal fork


View Profile WWW
June 27, 2022, 04:05:28 PM
Merited by NeuroticFish (2)
 #1

I created a channel worth of 0.02 tBTC to test some things with routing in Electrum, and it appears to not work as expected. I've made two transactions, sending 100 sats and 10,001 sats respectively from my Electrum Lightning node to my Core Lightning node.





Shouldn't the receiving capacity increase by 10,101 sats? Also, shouldn't sending capacity be greater? More like 0.01989563 tBTC?

Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3132



View Profile
June 27, 2022, 04:19:42 PM
Merited by NeuroticFish (4), BlackHatCoiner (4), Pmalek (1)
 #2

Shouldn't the receiving capacity increase by 10,101 sats? Also, shouldn't sending capacity be greater? More like 0.01989563 tBTC?

Both parties are required to keep a small unspendable reserve.

Each side of a channel maintains this reserve so it always has something to lose if it were to try to broadcast an old, revoked commitment transaction. Initially, this reserve may not be met, as only one side has funds; but the protocol ensures that there is always progress toward meeting this reserve, and once met, it is maintained.

Try spending more coins. Once you spend enough to meet your reserve, any extra coins sent should be added to your "Can receive" counter. The reserve is usually 1% so you should see the difference once you spend over 20k satoshi.

Type in lightning-cli listpeers on your other node, find that channel and compare "our_channel_reserve_satoshis" and "their_channel_reserve_satoshis" values.
BlackHatCoiner (OP)
Legendary
*
Offline Offline

Activity: 1624
Merit: 7985


Bitcoin is a royal fork


View Profile WWW
June 27, 2022, 06:29:08 PM
 #3

Try spending more coins.
That was the problem. Thanks again!

Type in lightning-cli listpeers on your other node, find that channel and compare "our_channel_reserve_satoshis" and "their_channel_reserve_satoshis" values.
I've opened a channel from both Electrum's node and Core's node to 1ml dot com's node, because apparently I can't make those two connect together, so 1ml routes my transactions. With a listpeers from Core Lightning I see:
Code:
"their_channel_reserve_satoshis": 15000
"our_channel_reserve_satoshis": 15000

I sent another 20,000 sats, which means I've sent 30,101 over all, plus a few in fees. Now my receiving capacity is 10,110 sats. What's the explanation behind that? The number would make sense if the reserve was 20,000 sats. (I haven't checked the reserve from Electrum's console as I don't know how to do it atm, but it shouldn't be different; it's the same Lightning node)

Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3132



View Profile
June 27, 2022, 11:33:59 PM
 #4

I sent another 20,000 sats, which means I've sent 30,101 over all, plus a few in fees. Now my receiving capacity is 10,110 sats. What's the explanation behind that? The number would make sense if the reserve was 20,000 sats. (I haven't checked the reserve from Electrum's console as I don't know how to do it atm, but it shouldn't be different; it's the same Lightning node)

It could be different; Electrum might be the one enforcing a higher reserve. Try running "list_channels()" in the console and check both "local_reserve" and "remote_reserve" values.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!