From 64d7c42c0b4848595f494398d4d9cebfd5a15cfc Mon Sep 17 00:00:00 2001 From: zsfelfoldi Date: Tue, 1 Jul 2025 08:05:39 +0200 Subject: [PATCH] eth/filters: raise maxAddresses to 1000 --- eth/filters/api.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/eth/filters/api.go b/eth/filters/api.go index 657f01ebd1..f91c347b51 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -43,14 +43,14 @@ var ( errExceedMaxAddresses = errors.New("exceed max addresses") ) -// The maximum number of topic criteria allowed, vm.LOG4 - vm.LOG0 -const maxTopics = 4 - -// The maximum number of allowed topics within a topic criteria -const maxSubTopics = 1000 - -// The maximum number of addresses allowed in a filter criteria -const maxAddresses = 100 +const ( + // The maximum number of addresses allowed in a filter criteria + maxAddresses = 1000 + // The maximum number of topic criteria allowed, vm.LOG4 - vm.LOG0 + maxTopics = 4 + // The maximum number of allowed topics within a topic criteria + maxSubTopics = 1000 +) // filter is a helper struct that holds meta information over the filter type // and associated subscription in the event system.