watchtower/wtclient: prep client for taproot towers

This commit is contained in:
Elle Mouton committed 2024-01-19 15:33:06 +02:00
1 parent c50aa10194
commit 660f1f361e
7 files changed
+207 -56

No files matched your search

+1 -4
View File
@@ -523,10 +523,7 @@ func (m *Manager) Policy(blobType blob.Type) (wtpolicy.Policy, error) {
func (m *Manager) RegisterChannel(id lnwire.ChannelID,
chanType channeldb.ChannelType) error {
blobType := blob.TypeAltruistCommit
if chanType.HasAnchors() {
blobType = blob.TypeAltruistAnchorCommit
}
blobType := blob.TypeFromChannel(chanType)
m.clientsMu.Lock()
if _, ok := m.clients[blobType]; !ok {