Skip to content

Commit

Permalink
Merge pull request #33 from worldcoin/0xkitsune/forward-tx
Browse files Browse the repository at this point in the history
Only forward non pbh txs to the sequencer
  • Loading branch information
0xKitsune authored Oct 15, 2024
2 parents c8f4ac1 + 107c6f5 commit f554215
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions world-chain-builder/src/rpc/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ where
// On optimism, transactions are forwarded directly to the sequencer to be included in
// blocks that it builds.
if let Some(client) = self.raw_tx_forwarder().as_ref() {
tracing::debug!( target: "rpc::eth", "forwarding raw transaction to");
let _ = client.forward_raw_transaction(&inner_tx).await.inspect_err(|err| {
if pool_transaction.semaphore_proof.is_none() {
tracing::debug!( target: "rpc::eth", "forwarding raw transaction to");
let _ = client.forward_raw_transaction(&inner_tx).await.inspect_err(|err| {
tracing::debug!(target: "rpc::eth", %err, hash=% *pool_transaction.hash(), "failed to forward raw transaction");
});
}
}

// submit the transaction to the pool with a `Local` origin
Expand Down

0 comments on commit f554215

Please sign in to comment.