unicornultrafoundation / go-u2u

Implementation of U2U Network in Golang
https://u2u.xyz
GNU Lesser General Public License v3.0
5 stars 2 forks source link

Improve transaction validation flow #102

Open trinhdn97 opened 3 months ago

trinhdn97 commented 3 months ago

The transaction validation flow now can be described as a separated two-step process.

1. The low cost basic validation step:

2. The heavy state-related validation step:

Currently all transaction must pass both validation steps to be included in local txpool. While some processes in txpool require basic validation only, and some future process focus on state-related validations, such as paymaster/AA flow or future subpools. This leads to the need of breaking down the whole validation process first

khoau2u commented 3 months ago

Would removing the heavy step make certain denial-of-service attack vectors easier to exploit?