Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miko committed Jan 29, 2025
1 parent 17f9f7f commit 0d00d01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/services/v1/comments/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -894,18 +894,18 @@ func handleUsdcTip(request *createRequest) {
signatureTS = tag.Value
}

err := lbry.ValidateSignatureAndTS(request.args.ChannelID, signature, signatureTS, request.args.ChannelName)
if err != nil {
logrus.Error(fmt.Sprintf("%v %s", errors.Prefix("could not authenticate channel signature:", err), defaultErrorInfo))
}

for i, v := range tagsLeftToCheck {
if v == tag.Name {
tagsLeftToCheck = append(tagsLeftToCheck[:i], tagsLeftToCheck[i+1:]...)
}
}
}

err = lbry.ValidateSignatureAndTS(request.args.ChannelID, signature, signatureTS, request.args.ChannelName)
if err != nil {
logrus.Error(fmt.Sprintf("%v %s", errors.Prefix("could not authenticate channel signature:", err), defaultErrorInfo))
}

if len(tagsLeftToCheck) != 0 {
logrus.Error(fmt.Sprintf("Didn't found tags %v from the tx", tagsLeftToCheck))
}
Expand Down

0 comments on commit 0d00d01

Please sign in to comment.