lnd: [Issue] Anchor output reserve - can't open channels
Background
Tried to open a channel, peer is online, I have enough funds in onchain, like 2.7M sats in 1 UTXO.
I always get an error that doesn’t say too much:
reserved wallet balance invalidated
Your environment
- LND v.13.3
- Debian 10
- Umbrel node v 0.4.4 (latest)
- 35 other channels open, working fine, routing etc, with total liquidity of almost 30M sats
Steps to reproduce
I used RTL, Thunderhub, Umbrel dashboard, lncli, Zap mobile/desktop, Zeus to try to open a channel of 2 or 2.5M sats Error in RTL: reserved wallet balance invalidated Error in Thunderhub: failed to open channel Umbrel: reserved wallet balance invalidated Zap, Zeus: reserved wallet balance invalidated lncli: rpc error: code = Unknown desc = reserved wallet balance invalidated Whatever amount I put, is the same message, that doesn’t say too much, what should I do or how to fix it. I looked for more documentation and I found that is due to new feature release of anchor output reserve, but there is no place to explain how to deal with this “reserve”, there’s no specific amount that user can know to keep or use in “reserve”, nothing.
I tried also disabling this feature editing the lnd.conf file with
[protocol]
protocol.no-anchors=true
restart lnd, tried again, same error
Expected behaviour
- To have a damn explanatory message saying what to do or calculate or send to specific documentation.
- Leave only the commit fees to calculate this reserve and deduct from the amount the necessary fee/reserve
- make a way that user will see and label that specific reserve in a UTXO and be clear that is not to be touched/moved from that wallet. Also to not be reflected into “available balance”.
Actual behaviour
Can’t open channels and also I don’t know or calculate how much I should have in “reserve”. Right now is just confusing, how much is in “reserve” and how much is available to spend. nobody knows that, none of wallet apps is showing that. This will just create more issues and chaos with so many noobs running nodes.
Please advise how to deal with this. Make a specific documentation for users, it is very confusing.
Additional references
https://bitcoinops.org/en/topics/anchor-outputs/ https://github.com/lightningnetwork/lnd/issues/5599 https://github.com/lightningnetwork/lnd/issues/5648
I also posted some requests / fixes to these apps, to see if more people come up with a nice solution: https://github.com/Ride-The-Lightning/RTL/issues/833 https://github.com/apotdevin/thunderhub/issues/352 https://github.com/getumbrel/umbrel-lightning/issues/29
EDIT additional test: I sent 100k sats to a new UTXO to the node wallet. Still doesn’t let me to open a channel with the 2.7M sats, whatever amount I try to use. This is getting ridiculous.
Another question: when I open a channel how do I know that is not taking from this “reserve” UTXO, how do I make coin control when I open a channel in TH, RTL, Zeus, Zap etc…
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 6
- Comments: 16 (5 by maintainers)
Yes, today I could test it. Umbrel with LND v0.14.1
Had 5 UTXOs with various amounts and 1 UTXO with 100k sats. Total was like 665000 sats I tried first with all balance to open the channel, It came the message that I need more sats for anchor reserve So I open a channel of 565000 sats. I was expecting to get an error for insufficient funds, because of taking the fee from that 100k UTXO, but it didn’t. Channel is open and a small fee was taken from that last 100k UTXO.
The fix of this issue deserve a new version. Lot’s of our users have issues caused because of this.
This should be fixed by: https://github.com/lightningnetwork/lnd/pull/5665
The fix is in master, and will be a part of the 0.14 release. The reserve check wasn’t taking into account change outputs. So if you have a single UTXO, then it would prevent you from opening a channel.
A short term work around is to ensure you have multiple UTXOs before opening a channel.