mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: validate payload versioned hashes (#4417)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -161,6 +161,11 @@ impl SealedBlock {
|
||||
)
|
||||
}
|
||||
|
||||
/// Returns only the blob transactions, if any, from the block body.
|
||||
pub fn blob_transactions(&self) -> Vec<&TransactionSigned> {
|
||||
self.body.iter().filter(|tx| tx.is_eip4844()).collect()
|
||||
}
|
||||
|
||||
/// Expensive operation that recovers transaction signer. See [SealedBlockWithSenders].
|
||||
pub fn senders(&self) -> Option<Vec<Address>> {
|
||||
TransactionSigned::recover_signers(&self.body, self.body.len())
|
||||
|
||||
Reference in New Issue
Block a user