Commit 8b574712 authored by Michal Kucharczyk's avatar Michal Kucharczyk Committed by GitHub
Browse files

txpool: don't validate block transactions if the pool is empty (#12973)



* txpool: don't validate block transactions if the pool is empty

Fix shall prevent from wasting the CPU during the major sync. Block
transaction don't need to be re-validated when the txpool is empty.

Fixes: #12903

* Apply suggestions from code review

Co-authored-by: default avatarBastian Köcher <[email protected]>
parent 614cd04d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment