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.
This commit is contained in:
Galoretka 2025-10-16 14:49:41 +03:00 committed by Alvarez
parent 2f1c600744
commit 9ba7e2a439

View file

@ -201,7 +201,7 @@ func expandVerkle(ctx *cli.Context) error {
} }
for i, key := range keylist { for i, key := range keylist {
log.Info("Reading key", "index", i, "key", keylist[0]) log.Info("Reading key", "index", i, "key", key)
root.Get(key, chaindb.Get) root.Get(key, chaindb.Get)
} }