From 43f74243e55e17159510a9bb2296d9c4b36db871 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 11 Sep 2025 04:10:33 +0000 Subject: [PATCH] check config.start key Signed-off-by: jsvisa --- cmd/geth/snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/geth/snapshot.go b/cmd/geth/snapshot.go index a0222dda22..53151f215e 100644 --- a/cmd/geth/snapshot.go +++ b/cmd/geth/snapshot.go @@ -612,7 +612,7 @@ func (ts *traverseSetup) traverseState(ctx context.Context, counters *traverseCo if ts.config != nil { // Skip branches that are entirely before startKey - if limitKey != nil && bytes.Compare(limitKey, ts.config.startKey) <= 0 { + if ts.config.startKey != nil && limitKey != nil && bytes.Compare(limitKey, ts.config.startKey) <= 0 { return nil }