fix: comment out timestamp prevention policies in event rejection

This commit is contained in:
2026-03-06 13:33:26 +01:00
parent c01bcd5674
commit 3755d0cbce

View File

@@ -100,8 +100,8 @@ func main() {
relay.RejectEvent = append(
relay.RejectEvent,
policies.ValidateKind,
policies.PreventTimestampsInThePast(600),
policies.PreventTimestampsInTheFuture(60),
// policies.PreventTimestampsInThePast(600),
// policies.PreventTimestampsInTheFuture(60),
func(ctx context.Context, event *nostr.Event) (reject bool, msg string) {
if event.Kind == 20001 {
return true, "kind 20001 events are not allowed"