From 744fb0702ced8646c48efc40c36e6c8ed3e183c3 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 23 Apr 2026 21:11:56 -0300 Subject: [PATCH] relay.AssumeValid can be passed as an option, so it works from a Pool. --- relay.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/relay.go b/relay.go index c4bba0f..08ff822 100644 --- a/relay.go +++ b/relay.go @@ -93,6 +93,7 @@ func NewRelay(ctx context.Context, url string, opts RelayOptions) *Relay { noticeHandler: opts.NoticeHandler, authHandler: opts.AuthHandler, closed: &atomic.Bool{}, + AssumeValid: opts.AssumeValid, } go func() { @@ -147,6 +148,9 @@ type RelayOptions struct { // RequestHeader sets the HTTP request header of the websocket preflight request RequestHeader http.Header + + // AssumeValid disables signature verification for events received from this relay + AssumeValid bool } // String just returns the relay URL.