Bitcoin Forum
May 06, 2024, 11:04:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Lightning] Receiving capacity stucks at 0 BTC  (Read 83 times)
BlackHatCoiner (OP)
Legendary
*
Online Online

Activity: 1512
Merit: 7355


Farewell, Leo


View Profile
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?

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
1715036644
Hero Member
*
Offline Offline

Posts: 1715036644

View Profile Personal Message (Offline)

Ignore
1715036644
Reply with quote  #2

1715036644
Report to moderator
1715036644
Hero Member
*
Offline Offline

Posts: 1715036644

View Profile Personal Message (Offline)

Ignore
1715036644
Reply with quote  #2

1715036644
Report to moderator
1715036644
Hero Member
*
Offline Offline

Posts: 1715036644

View Profile Personal Message (Offline)

Ignore
1715036644
Reply with quote  #2

1715036644
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715036644
Hero Member
*
Offline Offline

Posts: 1715036644

View Profile Personal Message (Offline)

Ignore
1715036644
Reply with quote  #2

1715036644
Report to moderator
1715036644
Hero Member
*
Offline Offline

Posts: 1715036644

View Profile Personal Message (Offline)

Ignore
1715036644
Reply with quote  #2

1715036644
Report to moderator
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



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
*
Online Online

Activity: 1512
Merit: 7355


Farewell, Leo


View Profile
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)

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



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!