[X] Separate low cost transaction validation step and heavy state-related one
[X] Calculate the totalcost of all transactions belong to an address, for ease of stateful validation
[X] Move some validation rules outside of mutex
[X] When we try to reorg the txpool to a newHead and that newHead seems to be missing from the db. We only have the header but not the full block. This PR checks to not reset txpool to the newHead if missing to avoid panicking
Please check if what you want to add to
go-u2u
list meets Contribution guidelines, maintainers note and Quality standard.totalcost
of all transactions belong to an address, for ease of stateful validationtxpool
to anewHead
and thatnewHead
seems to be missing from the db. We only have the header but not the full block. This PR checks to not resettxpool
to thenewHead
if missing to avoid panicking