Disable email sending when channel mismatch

This commit is contained in:
Yaacov Akiba Slama
2021-05-30 12:19:43 +03:00
parent ad31aa8921
commit 193e3639d9

View File

@@ -201,12 +201,6 @@ func (s *server) CheckChannels(ctx context.Context, in *lspdrpc.Encrypted) (*lsp
log.Printf("getNotFakeChannels(%v) error: %v", checkChannelsRequest.FakeChannels, err) log.Printf("getNotFakeChannels(%v) error: %v", checkChannelsRequest.FakeChannels, err)
return nil, fmt.Errorf("getNotFakeChannels(%v) error: %w", checkChannelsRequest.FakeChannels, err) return nil, fmt.Errorf("getNotFakeChannels(%v) error: %w", checkChannelsRequest.FakeChannels, err)
} }
if len(notFakeChannels) != 0 || len(closedChannels) != 0 {
err = sendChannelMismatchNotification(nodeID, notFakeChannels, closedChannels)
if err != nil {
log.Printf("sendChannelMismatchNotification() error: %v", err)
}
}
checkChannelsReply := lspdrpc.CheckChannelsReply{ checkChannelsReply := lspdrpc.CheckChannelsReply{
NotFakeChannels: notFakeChannels, NotFakeChannels: notFakeChannels,
ClosedChannels: closedChannels, ClosedChannels: closedChannels,