server: register a taproot tower client
This commit is contained in:
2 files changed
+9
-20
No files matched your search
@@ -1553,6 +1553,13 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
||||
anchorPolicy := policy
|
||||
anchorPolicy.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,
|
||||
@@ -1574,7 +1581,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
||||
MinBackoff: 10 * time.Second,
|
||||
MaxBackoff: 5 * time.Minute,
|
||||
MaxTasksInMemQueue: cfg.WtClient.MaxTasksInMemQueue,
|
||||
}, policy, anchorPolicy)
|
||||
}, policy, anchorPolicy, taprootPolicy)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user