Conversation
bitromortac
left a comment
There was a problem hiding this comment.
Very cool 🚀, this will be very useful! It worked for me in my local tests, but I had to publish with bitcoind in order to get a better error message (my fees were set too low):
lncli wallet publishtx <rawtx>:
[lncli] rpc error: code = Unknown desc = transaction rejected: output already spent
bitcoin-cli sendrawtransaction <rawtx>:
insufficient fee, rejecting replacement 20965f18add93b50540657f194d0d6222c6633e8a1859ee67f694a473f11d054; new feerate 0.00030000 BTC/kvB <= old feerate 0.00108518 BTC/kvB
I couldn't find a way to tell which anchor output is the local one, is there an easy way to see this, or does one just have to try?
Tested this with a p2wpkh and p2tr sponsor.
Unfortunately there is no way to tell AFAIK. But since we try to derive the address first, it will fail if no match can be found, then you know to use the other one. |
|
@guggero, remember to re-request review from reviewers when ready |
|
Updated to be compatible with Taproot Channel anchors and added the ability to pull multiple anchors with a single TX. |
Allows users to pull down (CPFP) an anchor output of a channel force close transaction that has a too low fee.
Example use: