From 0336d61033abc86876e6ed04d93e213901db2149 Mon Sep 17 00:00:00 2001 From: zeroXbrock <2791467+zeroXbrock@users.noreply.github.com> Date: Tue, 23 Jul 2024 13:21:49 -0700 Subject: [PATCH] remove PoA middleware (prev. used for goerli) --- flashbots/__init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/flashbots/__init__.py b/flashbots/__init__.py index 4ecd9e0..9216c51 100644 --- a/flashbots/__init__.py +++ b/flashbots/__init__.py @@ -23,12 +23,6 @@ def flashbot( """ flashbots_provider = FlashbotProvider(signature_account, endpoint_uri) - - # TODO: see if we can remove this safely; goerli is deprecated - # goerli connection requires extra PoA middleware - if endpoint_uri is not None and "goerli" in endpoint_uri: - w3.middleware_onion.inject(geth_poa_middleware, layer=0) - flash_middleware = construct_flashbots_middleware(flashbots_provider) w3.middleware_onion.add(flash_middleware)