lightninglabs / chantools

A loose collection of tools all somehow related to lnd and Lightning Network channels.
MIT License
222 stars 32 forks source link

Cannot published sweep force close transaction #135

Closed gus4rs closed 5 months ago

gus4rs commented 5 months ago

Why does sweepremoteclosed cannot publish the tx? What other steps are needed

$ chantools sweepremoteclosed -t --feerate 40 --sweepaddr xxx --walletdb /home/ubuntu/.lnd/data/chain/bitcoin/testnet/wallet.db --publish --recoverywindow 10 --publish
[INF] CHAN: chantools version v0.13.1 commit 
Input wallet password: 
[INF] CHAN: Found 1 unspent outputs for address xxxx
[INF] CHAN: Fee 4430 sats of 9617069 total amount (estimated weight 443)
[INF] CHAN: Published TX xxx, response: sendrawtransaction RPC error: {"code":-26,"message":"non-BIP68-final"}
guggero commented 5 months ago

non-BIP68-final means a time lock hasn't expired yet.

gus4rs commented 5 months ago

sure, but the issue is that apparently a chantools pullanchor is needed before attempting a sweepremoteclosed