Skip to content

Commit

Permalink
Add log before the hash
Browse files Browse the repository at this point in the history
  • Loading branch information
sithumonline committed Oct 25, 2023
1 parent 61dfd44 commit a038ee7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions relayer/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ func (s *Server) handleWebsocket(w http.ResponseWriter, r *http.Request) {
}
}
}
s.Log.InfofWithContext(ctx, fmt.Sprintf("before sig content evt.kind: %d isEcdsaPvtKey: %t isEvtChanged: %t len.evt.Tags: %d", evt.Kind, s.ecdsaPvtKey != nil, isEvtChanged, len(evt.Tags)))
isHashAdded := false
if evt.Kind == 1 && s.ecdsaPvtKey != nil && (isEvtChanged || len(evt.Tags) == 0) {
sig, err := hashutil.GetSing(hashutil.GetSha256([]byte(evt.Content)), s.ecdsaPvtKey)
Expand Down

0 comments on commit a038ee7

Please sign in to comment.