Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/geth: print progress logs when iterating large contracts too #28179

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Sep 22, 2023

When running state traversal, we only log progress for accounts. That's unfortunate when iterating a huge contract as it can take a very long time without output. This PR adds the logging for storage iteration too.

I.e. This is what I want to fix

INFO [09-22|07:37:48.021] Traversing state                         nodes=6,395,005 accounts=451,926 slots=2,271,664 codes=73378 elapsed=1m58.960s
INFO [09-22|07:42:05.237] Traversing state                         nodes=21,319,313 accounts=482,117 slots=8,634,942 codes=78166 elapsed=6m16.175s

Note the 5 minute gap in the logs.

@karalabe karalabe added this to the 1.13.2 milestone Sep 22, 2023
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@karalabe karalabe merged commit d135baf into ethereum:master Sep 22, 2023
1 check passed
tyler-smith pushed a commit to blocknative/go-ethereum that referenced this pull request Oct 12, 2023
tyler-smith pushed a commit to blocknative/go-ethereum that referenced this pull request Oct 12, 2023
siosw pushed a commit to fabriqnetwork/go-ethereum that referenced this pull request Oct 16, 2023
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants