feat: Avoid propagating transactions with conditionals, closes #14706 (#14722)

This commit is contained in:
0xAtreides
2025-02-26 15:23:50 +00:00
committed by GitHub
parent f94f37eb43
commit 009b09256c

View File

@@ -132,9 +132,11 @@ where
} else {
// otherwise, add to pool with the appended conditional
tx.set_conditional(condition);
let hash = self.pool().add_transaction(TransactionOrigin::External, tx).await.map_err(
|e| OpEthApiError::Eth(reth_rpc_eth_types::EthApiError::PoolError(e.into())),
)?;
let hash =
self.pool().add_transaction(TransactionOrigin::Private, tx).await.map_err(|e| {
OpEthApiError::Eth(reth_rpc_eth_types::EthApiError::PoolError(e.into()))
})?;
Ok(hash)
}
}