From aa77ba7f75723ffbaabc4dbacfa1f76975d81377 Mon Sep 17 00:00:00 2001 From: beer-1 Date: Wed, 4 Dec 2024 15:10:20 +0900 Subject: [PATCH] remove unnecessary range --- indexer/prune.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexer/prune.go b/indexer/prune.go index 777cc17..402705f 100644 --- a/indexer/prune.go +++ b/indexer/prune.go @@ -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