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: silence txpool reorg warning (annoying on import) #15725

Merged
merged 1 commit into from
Dec 21, 2017

Conversation

karalabe
Copy link
Member

Whenever the blockchain does a reorg, the transaction pool needs to load up all the transactions that went missing in the process. If the reorg is deeper than 64 blocks, the pool ignored it and warns us. If however we're importing big batches of blocks (full sync, fast sync end, or catching up), we're constantly being "warned", which gets annoying fast.

Since this warning was mostly inserted to detect errors with the new logic (which seems to work correctly), I think we can lower it from WARN to DEBUG. The blockchain will still warn us of large reorgs, so there's no inherent added value here, as long as the txpool works correctly in handling them.

@karalabe karalabe requested a review from holiman as a code owner December 21, 2017 07:43
@karalabe karalabe added this to the 1.8.0 milestone Dec 21, 2017
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 7138de7 into ethereum:master Dec 21, 2017
b00ris pushed a commit to b00ris/go-ethereum that referenced this pull request Jan 19, 2018
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