Skip to content

Commit

Permalink
peer: soft-disable towers with taproot channels
Browse files Browse the repository at this point in the history
In this commit, we modify the starting logic to note attempt to add a
tower client for taproot channels. Instead, we'll just log that this
isn't available yet.
  • Loading branch information
Roasbeef committed Jun 14, 2023
1 parent b4fa433 commit 2d4df80
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions peer/brontide.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,23 @@ func (p *Brontide) addLink(chanPoint *wire.OutPoint,
// okay if the clients are disabled altogether and these values are nil,
// as the link will check for nilness before using either.
var towerClient htlcswitch.TowerClient
if chanType.HasAnchors() {
switch {
case chanType.IsTaproot():
// Leave the tower client as nil for now until the tower client
// has support for taproot channels.
//
// If the user has activated the tower client, then add a log
// to explain that any taproot channel updates wil not be
// backed up to a tower.
if p.cfg.TowerClient != nil {
p.log.Debugf("Updates for channel %s will not be "+
"backed up to a watchtower as watchtowers "+
"are not yet taproot channel compatible",
chanPoint)
}
case chanType.HasAnchors():
towerClient = p.cfg.AnchorTowerClient
} else {
default:
towerClient = p.cfg.TowerClient
}

Expand Down

0 comments on commit 2d4df80

Please sign in to comment.