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

CHAIN_HEAD_NOT_AVAILABLE ought to be a warning, not a trace log #6126

Closed
matthew1001 opened this issue Nov 6, 2023 · 0 comments · Fixed by #6127
Closed

CHAIN_HEAD_NOT_AVAILABLE ought to be a warning, not a trace log #6126

matthew1001 opened this issue Nov 6, 2023 · 0 comments · Fixed by #6127
Assignees
Labels
bug Something isn't working logging

Comments

@matthew1001
Copy link
Contributor

It's not difficult to cause CHAIN_HEAD_NOT_AVAILABLE to occur in a heavily loaded validator. I'm not sure exactly what causes the node not to have a chain head available at a given point in time, but when it happens it causes a nonce gap for the sender of the transaction.

Since the log entry rejecting transaction {} due to chain head not available yet is a trace entry, you can only spot that this is the cause of a nonce gap by recreating the issue with trace enabled.

I think there is an argument for turning it into a warning log entry. If it happens so frequently that the warnings make the logs noisy, there's probably something the user needs to look into anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working logging
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant