Skip to content

Commit

Permalink
remove unnecessary range
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Dec 4, 2024
1 parent 365c859 commit aa77ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (e *EVMIndexerImpl) prune(ctx context.Context, curHeight uint64) error {
func (e *EVMIndexerImpl) pruneBlocks(ctx context.Context, minHeight uint64) error {
// record block hashes
var blockHashes []common.Hash
rn := new(collections.Range[uint64]).StartInclusive(1).EndInclusive(minHeight)
rn := new(collections.Range[uint64]).EndInclusive(minHeight)
err := e.BlockHeaderMap.Walk(ctx, rn, func(key uint64, value coretypes.Header) (stop bool, err error) {
blockHashes = append(blockHashes, value.Hash())
return false, nil
Expand Down

0 comments on commit aa77ba7

Please sign in to comment.