Skip to content

Commit e8c7880

Browse files
authored
send bundle to 10 subsequent blocks (#25)
* send bundle to 10 subsequent blocks * comment
1 parent d2df2d8 commit e8c7880

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/filler.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,12 @@ where
165165
let latest_ru_block_number = self.ru_provider.get_block_number().await?;
166166

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

171175
Ok(())
172176
}

0 commit comments

Comments
 (0)