walletkit+sweeper: add forgotten P2TR address type#6632
Conversation
There was a problem hiding this comment.
Let's also make the default addresses for the sweeper P2TR as well?
So we'd change this argument here: https://github.com/lightningnetwork/lnd/blob/master/server.go#L4422-L4424
That'll also indirectly cause all on chain sweeps (force closes, etc) to go into P2TR addresses.
There was a problem hiding this comment.
We should also be able to change this as well:
Lines 2162 to 2175 in de6fcf1
In practice we should always be using the upfront shutdown addr, but this should be safe.
There was a problem hiding this comment.
We'll also need to update this, so older nodes will accept a P2TR addr as an upfront shutdown script:
Lines 2247 to 2268 in dceb101
I think this means that we shouldn't yet switch over the default co-op close addr due to this stricter validation.
There was a problem hiding this comment.
Re the above, here's where we generate our upfront shutdown addr:
Lines 1363 to 1375 in 262591c
0905844 to
427702d
Compare
Change Description
Fixed three more occurrences of address type enums that didn't yet support P2TR inputs.
NOTE: I didn't add anything to the release notes since this should've been added by any of the previous P2TR pull requests.