feat: support blob transactions in manager (#4294)

This commit is contained in:
Matthias Seitz
2023-08-21 17:05:11 +02:00
committed by GitHub
parent 0d47e4cf4f
commit 3b404acc7d
3 changed files with 54 additions and 14 deletions

View File

@ -80,6 +80,13 @@ pub struct Transactions(
pub Vec<TransactionSigned>,
);
impl Transactions {
/// Returns `true` if the list of transactions contains any blob transactions.
pub fn has_eip4844(&self) -> bool {
self.0.iter().any(|tx| tx.is_eip4844())
}
}
impl From<Vec<TransactionSigned>> for Transactions {
fn from(txs: Vec<TransactionSigned>) -> Self {
Transactions(txs)