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

core/state/snapshot: add generation logs to storage too #22177

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

karalabe
Copy link
Member

Currently the snapshot generator only logs every 8 seconds while it's processing the account trie (possibly a regression, I surely know it logged for storage tries too at one time). The generator however does not log while it's crunching through a storage trie.

If the node is receiving blocks, this is fine, because every block interrupts the generator and will resume it afterwards, forcing a log anyway. However, if no blocks are arriving (e.g. benchmarking with networking disabled), the generator will not print anything until it gets done with a contract. With contracts weighting gigabytes on mainnet, that amounts to hours of potential "no log" scenarios, which is not a good UX.

This PR adds a log back so that the generator will log if it was crunching a storage trie for too long too.

@karalabe karalabe added this to the 1.10.0 milestone Jan 15, 2021
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