"""Low-bandwidth router configuration for integration testing. Configures the router as a minimal, low-share-ratio participant: - Few tunnels, short tunnel length - Low bandwidth caps - No floodfill participation - Reseed from default I2P HTTPS servers """ from i2p_router.config import RouterConfig def create_test_config( listen_host: str = "0.0.0.0", listen_port: int = 9000, data_dir: str = "/data/i2p", ) -> RouterConfig: """Create a low-share-ratio config for integration testing.""" return RouterConfig( router_name="i2p-python-integration-test", listen_host=listen_host, listen_port=listen_port, # Minimal tunnel participation inbound_tunnel_count=2, outbound_tunnel_count=2, tunnel_length=2, tunnel_lifetime_seconds=600, # Low bandwidth (50 Kbps cap) bandwidth_limit_kbps=50, # No floodfill floodfill=False, # Timeouts handshake_timeout_seconds=30, idle_timeout_seconds=300, # Data directory data_dir=data_dir, )