[feature]: add taproot chan support to rbf-closer #9662
Labels
channel closing
Related to the closing of channels cooperatively and uncooperatively
enhancement
Improvements to existing features / behaviour
protocol
rbf
Is your feature request related to a problem? Please describe.
Today we don't allow the new RBF close feature to be activated with taproot channels, we'll error out on start up here:
lnd/server.go
Lines 615 to 624 in b01f4e5
Describe the solution you'd like
We should fix this by adding the additional nonce logic needed to support taproot channels w/ the new rbf coop close flow. This is very similar to the nonce handling we use for the existing legacy close protocol.
The spec currently lacks a section detailing the changes to support the taproot channels, this comment is the current best source of truth for the protocol extension: lightning/bolts#1205 (comment).
Additional context
As a stop gap (as there's some spec work needed here), we should update this section to just create a normal chan closer if the channel is a taproot channel, and the RBF close feature is enabled:
lnd/peer/brontide.go
Lines 3321 to 3340 in b01f4e5
The text was updated successfully, but these errors were encountered: