Skip to content

Commit

Permalink
fix(sidecar): sent local blob also to the mempool
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Jul 19, 2024
1 parent d53da9b commit 7f8b48c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bolt-sidecar/src/builder/payload_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,21 @@ impl FallbackPayloadBuilder {
withdrawals: Some(Withdrawals::new(withdrawals)),
};

// If there are some blob transactions, send them to the mempool
let blob_txs = transactions.iter().filter(|tx| tx.as_eip4844().is_some());
for tx in blob_txs {
tracing::debug!(?tx.hash, "Sending blob tx to mempool");
let mut bytes: Vec<u8> = Vec::new();
tx.encode_enveloped(&mut bytes);
if let Err(e) = self
.execution_rpc_client
.send_raw_transaction(bytes.into())
.await
{
tracing::error!(error = ?e, ?tx.hash, "Failed to send blob tx to mempool");
}
}

let mut hints = Hints::default();
let max_iterations = 20;
let mut i = 0;
Expand Down

0 comments on commit 7f8b48c

Please sign in to comment.