From 3ad7fc57826c64f7000d92bda97994e22cc5dc69 Mon Sep 17 00:00:00 2001 From: boreq Date: Fri, 24 Nov 2023 17:00:35 +0100 Subject: [PATCH] Give up if relay won't accept malformed events Some events contain malformed p tags and we do our best to try to scan them and accept them. --- service/app/handler_process_saved_event.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/app/handler_process_saved_event.go b/service/app/handler_process_saved_event.go index 1127d82..1430012 100644 --- a/service/app/handler_process_saved_event.go +++ b/service/app/handler_process_saved_event.go @@ -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 }