-
Notifications
You must be signed in to change notification settings - Fork 21.5k
core/txpool/blobpool: disallow legacy sidecar after osaka #32534
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
Conversation
|
I think this also isn't that great because it causes us to validate the transaction twice. Once here, then again during |
Yeah, It's that. If there is no check, the API can be easily attacked by sending illegal blob transactions. |
|
@rjl493456442 how important do you think it is to convert sidecars in this codepath? It feels almost like it is better to not allow v0 sidecars after the fork. We can convert blobs that are sent to us via RPC and blobs already in our txpool, but maybe we just don't allow v0 to be propagated after the fork? If it is important, we should probably merge this or something like it. |
|
@lightclient I agree, we should prevent the blob txs with legacy sidecar been included after the Osaka. I think both you and @mask-pp are correct. The sidecar conversion is extremely expensive and can take several seconds for a single transaction. This opens an attack vector, allowing an attacker to easily drain a machine's resources by sending specially crafted blob transactions to the victim node. |
|
If we do upgrade on RPC and in the txpool, that should be enough, I think. I don't see the case where we need v0 to still circulate in the network after the fork. |
|
We will resolve this issue by removing the conversion on the |
…2534) This PR removes the conversion of legacy sidecars after Osaka and instead rejects them to the pool. --------- Co-authored-by: lightclient <[email protected]>
This PR aims to avoid being attached by illegal blob txs.