Skip to content

Commit

Permalink
Merge pull request #108 from uprendis/feature/raise-topics-limit
Browse files Browse the repository at this point in the history
Raise topics limit for API
  • Loading branch information
uprendis authored May 5, 2021
2 parents 1a4dfdd + ef28b3e commit e544db7
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 e544db7

Please sign in to comment.