Skip to content
Draft
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
8 changes: 6 additions & 2 deletions src/filler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,12 @@ where
let latest_ru_block_number = self.ru_provider.get_block_number().await?;

// send the Bundle to the transaction cache
self.send_bundle(txs.clone(), host_txs.clone(), latest_ru_block_number + 1)
.await?;
// targeting the next 10 blocks to increase chances of mining
// NOTE: this is a naive approach; production Fillers should implement more robust bundle resubmission logic
for i in 1..11 {
self.send_bundle(txs.clone(), host_txs.clone(), latest_ru_block_number + i)
.await?;
}

Ok(())
}
Expand Down
Loading