Skip to content

core: silence txpool reorg warning (annoying on import)#15725

Merged
karalabe merged 1 commit into
ethereum:masterfrom
karalabe:txpool-silence-annoying-warning
Dec 21, 2017
Merged

core: silence txpool reorg warning (annoying on import)#15725
karalabe merged 1 commit into
ethereum:masterfrom
karalabe:txpool-silence-annoying-warning

Conversation

@karalabe
Copy link
Copy Markdown
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
Copy Markdown
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