We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a4dfdd + ef28b3e commit e544db7Copy full SHA for e544db7
topicsdb/topicsdb.go
@@ -12,7 +12,7 @@ import (
12
"github.com/ethereum/go-ethereum/core/types"
13
)
14
15
-const MaxTopicsCount = 0xff
+const MaxTopicsCount = 1024
16
17
var (
18
ErrTooManyTopics = fmt.Errorf("Too many topics")
@@ -132,10 +132,6 @@ func (tt *Index) MustPush(recs ...*types.Log) {
132
// Write log record to database.
133
func (tt *Index) Push(recs ...*types.Log) error {
134
for _, rec := range recs {
135
- if len(rec.Topics) > MaxTopicsCount {
136
- return ErrTooManyTopics
137
- }
138
-
139
140
id = NewID(rec.BlockNumber, rec.TxHash, rec.Index)
141
count = posToBytes(uint8(len(rec.Topics)))
0 commit comments