eth/filters: raise maxAddresses to 1000

This commit is contained in:
zsfelfoldi 2025-07-01 08:05:39 +02:00
parent 7ff1e9a2be
commit 64d7c42c0b

View file

@ -43,14 +43,14 @@ var (
errExceedMaxAddresses = errors.New("exceed max addresses") errExceedMaxAddresses = errors.New("exceed max addresses")
) )
// The maximum number of topic criteria allowed, vm.LOG4 - vm.LOG0 const (
const maxTopics = 4 // The maximum number of addresses allowed in a filter criteria
maxAddresses = 1000
// The maximum number of allowed topics within a topic criteria // The maximum number of topic criteria allowed, vm.LOG4 - vm.LOG0
const maxSubTopics = 1000 maxTopics = 4
// The maximum number of allowed topics within a topic criteria
// The maximum number of addresses allowed in a filter criteria maxSubTopics = 1000
const maxAddresses = 100 )
// filter is a helper struct that holds meta information over the filter type // filter is a helper struct that holds meta information over the filter type
// and associated subscription in the event system. // and associated subscription in the event system.