mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
fix: ensure no blob transactions in payloads pre-cancun (#4779)
This commit is contained in:
@@ -60,6 +60,11 @@ impl Block {
|
||||
BlockWithSenders { block: self, senders }
|
||||
}
|
||||
|
||||
/// Returns whether or not the block contains any blob transactions.
|
||||
pub fn has_blob_transactions(&self) -> bool {
|
||||
self.body.iter().any(|tx| tx.is_eip4844())
|
||||
}
|
||||
|
||||
/// Calculates a heuristic for the in-memory size of the [Block].
|
||||
#[inline]
|
||||
pub fn size(&self) -> usize {
|
||||
|
||||
Reference in New Issue
Block a user