Skip to content

Commit 537284b

Browse files
committed
fix: use Local origin for RPC-submitted transactions
1 parent 73551a4 commit 537284b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/rpc/api.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ where
446446

447447
async fn send_transaction(
448448
&self,
449-
origin: TransactionOrigin,
449+
_origin: TransactionOrigin,
450450
tx: reth_primitives_traits::WithEncoded<
451451
reth_primitives_traits::Recovered<reth_transaction_pool::PoolPooledTx<Self::Pool>>,
452452
>,
@@ -458,8 +458,11 @@ where
458458

459459
let pool_transaction = <Self::Pool as TransactionPool>::Transaction::from_pooled(recovered);
460460

461+
// Upstream reth v1.11.1 changed eth_sendRawTransaction to pass External origin,
462+
// but Berachain treats all RPC-submitted transactions as Local to bypass pool
463+
// capacity limits and ensure consistent block gas utilization.
461464
let AddedTransactionOutcome { hash, .. } =
462-
self.pool().add_transaction(origin, pool_transaction).await?;
465+
self.pool().add_transaction(TransactionOrigin::Local, pool_transaction).await?;
463466

464467
Ok(hash)
465468
}

0 commit comments

Comments
 (0)