cmd/geth: log current key in expandVerkle instead of keylist[0] (#32689)
Some checks are pending
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run

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 GitHub
parent 367b5fbe42
commit 5c535074ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)
} }