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

blockchain: Conditionally log difficulty retarget. #2761

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

rstaudt2
Copy link
Member

This updates the difficulty retarget logs to only be logged if the chain believes it is current. These logs are otherwise very noisy when syncing headers with the debug log level set.

@davecgh
Copy link
Member

davecgh commented Oct 12, 2021

This is a nice change. I've noticed it was rather noisy during initial sync myself.

@davecgh davecgh added this to the 1.7.0 milestone Oct 12, 2021
blockchain/difficulty.go Outdated Show resolved Hide resolved
This updates the difficulty retarget logs to only be logged if the chain
believes it is current.  These logs are otherwise very noisy when
syncing headers with the debug log level set.
@davecgh davecgh merged commit 2f5d682 into decred:master Oct 14, 2021
@rstaudt2 rstaudt2 deleted the blockchain-debug-logs branch October 28, 2021 21:58
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.

None yet

3 participants