Skip to content

Commit

Permalink
remove PoA middleware (prev. used for goerli)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Jul 23, 2024
1 parent 53e39ef commit 0336d61
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions flashbots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0336d61

Please sign in to comment.