Skip to content

Commit 5c53507

Browse files
authored
cmd/geth: log current key in expandVerkle instead of keylist[0] (#32689)
Fix logging in the verkle dump path to report the actual key being processed. Previously, the loop always logged keylist[0], which misled users when expanding multiple keys and made debugging harder. This change aligns the log with the key passed to root.Get, improving traceability and diagnostics.
1 parent 367b5fb commit 5c53507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/geth/verkle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func expandVerkle(ctx *cli.Context) error {
201201
}
202202

203203
for i, key := range keylist {
204-
log.Info("Reading key", "index", i, "key", keylist[0])
204+
log.Info("Reading key", "index", i, "key", key)
205205
root.Get(key, chaindb.Get)
206206
}
207207

0 commit comments

Comments
 (0)