Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions crates/bundle/src/send/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,16 @@ where
&mut self,
mut trevm: EvmNeedsTx<RuDb, SignetEthBundleInsp<RuInsp>>,
) -> DriveBundleResult<Self, RuDb, SignetEthBundleInsp<RuInsp>> {
let bundle = &self.bundle.bundle;
// -- STATELESS CHECKS --

// Ensure that the bundle has transactions
trevm_ensure!(!bundle.txs.is_empty(), trevm, BundleError::BundleEmpty.into());
// Ensure that the bundle has rollup OR host transactions. Completely empty bundles are not allowed.
trevm_ensure!(
!self.bundle.bundle.txs.is_empty() && !self.bundle.host_txs.is_empty(),
trevm,
BundleError::BundleEmpty.into()
);

let bundle = &self.bundle.bundle;

// Check if the block we're in is valid for this bundle. Both must match
trevm_ensure!(
Expand Down
Loading