Skip to content

Commit

Permalink
increase topics limit in topicsdb to 1024
Browse files Browse the repository at this point in the history
  • Loading branch information
uprendis committed May 5, 2021
1 parent 1a4dfdd commit ef28b3e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions topicsdb/topicsdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/ethereum/go-ethereum/core/types"
)

const MaxTopicsCount = 0xff
const MaxTopicsCount = 1024

var (
ErrTooManyTopics = fmt.Errorf("Too many topics")
Expand Down Expand Up @@ -132,10 +132,6 @@ func (tt *Index) MustPush(recs ...*types.Log) {
// Write log record to database.
func (tt *Index) Push(recs ...*types.Log) error {
for _, rec := range recs {
if len(rec.Topics) > MaxTopicsCount {
return ErrTooManyTopics
}

var (
id = NewID(rec.BlockNumber, rec.TxHash, rec.Index)
count = posToBytes(uint8(len(rec.Topics)))
Expand Down

0 comments on commit ef28b3e

Please sign in to comment.