Skip to content

Commit

Permalink
Give up if relay won't accept malformed events
Browse files Browse the repository at this point in the history
Some events contain malformed p tags and we do our best to try to scan
them and accept them.
  • Loading branch information
boreq committed Nov 24, 2023
1 parent 850aa08 commit 9a7df15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/app/handler_process_saved_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ func (h *ProcessSavedEventHandler) shouldDisregardSendEventErr(err error) bool {
switch okResponseErr.Reason() {
case "replaced: have newer event":
return true
case "invalid: uneven size input to from_hex":
return true
default:
return false
}
Expand Down

0 comments on commit 9a7df15

Please sign in to comment.