Skip to content

Commit

Permalink
server: register a taproot tower client
Browse files Browse the repository at this point in the history
  • Loading branch information
ellemouton committed May 31, 2023
1 parent ddc029c commit 75f480f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1556,6 +1556,12 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
anchorPolicy.TxPolicy.BlobType |=
blob.Type(blob.FlagAnchorChannel)

// Copy the policy for legacy channels and set the blob flag
// signalling support for taproot channels.
taprootPolicy := policy
taprootPolicy.TxPolicy.BlobType |=
blob.Type(blob.FlagTaprootChannel)

s.towerClientMgr, err = wtclient.NewManager(&wtclient.Config{
FetchClosedChannel: fetchClosedChannel,
BuildBreachRetribution: buildBreachRetribution,
Expand All @@ -1578,7 +1584,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
MaxBackoff: 5 * time.Minute,
ForceQuitDelay: wtclient.DefaultForceQuitDelay,
MaxTasksInMemQueue: maxTasksInMemQueue,
}, policy, anchorPolicy)
}, policy, anchorPolicy, taprootPolicy)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 75f480f

Please sign in to comment.