From 59cc7fb8eb5e2e7e3d9b5b2f40d9659ca64d3117 Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "cmd/geth: print progress logs when iterating large contracts too (#28179)" This reverts commit d19fe8e4fe3cf1d9541e5e7e24aa8c08d357adfc. --- cmd/geth/snapshot.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cmd/geth/snapshot.go b/cmd/geth/snapshot.go index b1db0c9d5ab2..5e1c7847305f 100644 --- a/cmd/geth/snapshot.go +++ b/cmd/geth/snapshot.go @@ -332,11 +332,6 @@ func traverseState(ctx *cli.Context) error { storageIter := trie.NewIterator(storageIt) for storageIter.Next() { slots += 1 - - if time.Since(lastReport) > time.Second*8 { - log.Info("Traversing state", "accounts", accounts, "slots", slots, "codes", codes, "elapsed", common.PrettyDuration(time.Since(start))) - lastReport = time.Now() - } } if storageIter.Err != nil { log.Error("Failed to traverse storage trie", "root", acc.Root, "err", storageIter.Err) @@ -491,10 +486,6 @@ func traverseRawState(ctx *cli.Context) error { if storageIter.Leaf() { slots += 1 } - if time.Since(lastReport) > time.Second*8 { - log.Info("Traversing state", "nodes", nodes, "accounts", accounts, "slots", slots, "codes", codes, "elapsed", common.PrettyDuration(time.Since(start))) - lastReport = time.Now() - } } if storageIter.Error() != nil { log.Error("Failed to traverse storage trie", "root", acc.Root, "err", storageIter.Error())