paradigmxyz / reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
https://reth.rs/
Apache License 2.0
3.99k stars 1.21k forks source link

feat: add is_broadcastable_in_full to txtype #12739

Closed mattsse closed 15 hours ago

mattsse commented 16 hours ago

adds a helper to txtype to determine whether a txtype can be broadcasted as full object

this is intended to be used in p2p where we need to ensure only 4844 hashes are broadcasted.

we can ignore deposit txs here because those are never pooled.