-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Automate lnd on-chain allowence to be sufficient for anchor closing #11
Comments
This is LND restriction because for anchors to safely work you need to have some onchain sats ready for fee bumping.
Where lnd_output is segwit-native p2pk belonging to LND. LND 14.2 and higher detects that this is happening and allows opening of the channel. In case the reserve was low older LND versions will incorrectly reject such transaction thinking the reserve is not high enough. Hope it's clear. I guess this should be documented somewhere more clearly. |
Also forgot to mention there's a new LND RPC to reliably calculate the amount in sufficiently recent LND. We should use that to check the amount before attempting to open. |
That RequiredReserve RPC is in the WalletKit service. We need this PR in tonic_lnd to support walletrpc without hacks |
By
I thought LND 14.2 would be able to open a channel without setting CHAIN_WALLET_AMOUNT_SATS. What am I missing? Is there some setting to allow 0 internal wallet balance opens? Is that behavior even desirable or is the on-chain utxo better?
Running LND 14.2 (and 14.0, 14.3, 15.0) from lightning polar. Loptos works like a charm with CHAIN_WALLET_AMOUNT_SATS set sufficiently high.
The text was updated successfully, but these errors were encountered: