hey everyone,
Using Bitcoin software: Bitcoin Core v26.0.0, LND
OS: Ubuntu 22
Specs: 2GHz CPU, 8GB RAM, 200GB available space.
So here’s the thing: I have this stuck LND channel force close transaction.
Transaction ID: a1b517a0f0d822270074a6c18d25f0d42a76eed19bf72b4effcc20354fb95d57
If you look up the transaction, it’s a closing transaction from LND. I'm allowed to use RBF, but the wallet I’m using is LND, not Bitcoin Core, so I can't really use commands related to bitcoincli wallet.
I'm not sure how to make use of RBF... I’ve got some critical funds tied up here. Can anyone lend a hand?
Thanks a lot!
The transaction fee is 1.03 sat/vbyte which is low compared to how mempool is since many months ago. Your node setting is at the fee rate that can not purge the transaction out of mempool at that low fee rate. Increase the fee to 10 sat/vbyte if you want fast confirmation.
Deciding the ideal fee rate for unilateral exits is indeed a real problem on LN. Mempool was probably empty when you signed a commitment transaction last time with that peer, and it selected very low fee for the potential unilateral exit transaction. I never understood why the software isn't signing several transactions with different fee rates, so that when the user wants to exit, they can choose the fee.
If RBF didn't work, you can try CPFP, but you'll have to pay at least 20 sat/vb, to have the slight priority.
If it was LND then the bump fee command from Bitcoin core will not work if that is the command you are trying to use to increase the transaction fee
Did you read the documentation from lightning they have a specific command only for LND why not use those command instead to bump the fee.
Check the two commands for bumping closing fee from this link below
- https://docs.lightning.engineering/lightning-network-tools/lnd/unconfirmed-bitcoin-transactions#docs-internal-guid-5647dd03-7fff-dc71-47cf-5f7e2155a44d
If it doesn't work then you don't have a choice but to use CPFP which was suggested above.
RBF isn't going to be simple because the channel's remote node need to co-sign the transaction.
And CPFP in Bitcoin Core should be done manually since there's no specific command to directly create a CPFP transaction.
Good news is it supports "coin control" with send command to do that (CPFP).
Example:
Find the UTXO created by that unconfirmed transaction with: listunspent 0 command. ("0" is important to include unconfirmed coins)Create a PSBT using send command with this format:
bitcoin-cli -rpcwallet=<wallet_name> -named send outputs="{\"<your_own_address>\": <amount>}" inputs="[{\"txid\":\"<txid>\",\"vout\":<vout>,\"sequence\":4294967293}]" fee_rate=30
Fill up the inputs field <> with the information from your unconfirmed transaction, you can edit the sequence if you want to disable opt-in rbf flag.
Set the "fee_rate" to your desired value that can bump the child and parent's overall fee rate. (example below)Depends on the wallet encryption, the above should be enough to broadcast the CPFP transaction and it'll result with "true" together with the txid.
If "false" (wallet is locked); sign the PSBT using walletprocesspsbt <PSBT> command. (requires to unlock the wallet to sign either command)Lastly, broadcast the signed raw transaction with sendrawtransaction <RAW_Transaction> command.
Sample send (Regtest):
Several web font ends for LND such at ride the lightning allow you to do this. Or at least they did, it's been a while since I looked but you could CPFP an onchain TX.
The other option is a paid accelerator. Less work but costs money.
-Dave
hi all. thanks a grest lot for all those ideas. great to feel helped. i then followed all the links provided and again learned quite a lot...and it worked.
using :
lncli wallet bumpclosefee ...( plus the tx id of the opening transaction )
thanks again a lot to you all. great forum