From ceb5afd2d401bb9063c1026ff98902d57f0dad8e Mon Sep 17 00:00:00 2001 From: tlongwell-block <109685178+tlongwell-block@users.noreply.github.com> Date: Tue, 5 May 2026 16:44:29 -0400 Subject: [PATCH] fix(relay): raise MAX_HISTORICAL_LIMIT from 500 to 10,000 (#486) --- crates/sprout-relay/src/handlers/req.rs | 2 +- crates/sprout-relay/src/nip11.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/sprout-relay/src/handlers/req.rs b/crates/sprout-relay/src/handlers/req.rs index 63301306d..015ed3513 100644 --- a/crates/sprout-relay/src/handlers/req.rs +++ b/crates/sprout-relay/src/handlers/req.rs @@ -20,7 +20,7 @@ use crate::connection::{AuthState, ConnectionState}; use crate::protocol::RelayMessage; use crate::state::AppState; -const MAX_HISTORICAL_LIMIT: i64 = 500; +const MAX_HISTORICAL_LIMIT: i64 = 10_000; const MAX_SUBSCRIPTIONS: usize = 1024; const P_GATED_KINDS: [u32; 4] = [ KIND_AGENT_OBSERVER_FRAME, diff --git a/crates/sprout-relay/src/nip11.rs b/crates/sprout-relay/src/nip11.rs index cba3ada9b..1a1694c22 100644 --- a/crates/sprout-relay/src/nip11.rs +++ b/crates/sprout-relay/src/nip11.rs @@ -74,7 +74,7 @@ impl RelayInfo { max_message_length: Some(MAX_FRAME_BYTES as u64), max_subscriptions: Some(1024), max_filters: Some(10), - max_limit: Some(500), + max_limit: Some(10_000), max_subid_length: Some(256), min_pow_difficulty: None, auth_required: config.require_auth_token,