Skip to content

Commit

Permalink
Remove POA setting
Browse files Browse the repository at this point in the history
  • Loading branch information
cyc60 committed Oct 30, 2024
1 parent b51ac1f commit 6024516
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions sw_utils/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from eth_typing import URI
from web3 import AsyncWeb3
from web3.eth import AsyncEth
from web3.middleware import ExtraDataToPOAMiddleware
from web3.net import AsyncNet
from web3.providers.rpc.async_rpc import AsyncHTTPProvider
from web3.types import RPCEndpoint, RPCResponse
Expand Down Expand Up @@ -127,7 +126,6 @@ async def disconnect(self) -> None:
# pylint: disable-next=too-many-arguments, too-many-positional-arguments
def get_execution_client(
endpoints: list[str],
is_poa: bool = False,
timeout: int = 60,
retry_timeout: int = 0,
use_cache: bool = True,
Expand All @@ -153,10 +151,6 @@ def get_execution_client(
modules={'eth': (AsyncEth,), 'net': AsyncNet},
)

if is_poa:
client.middleware_onion.inject(ExtraDataToPOAMiddleware, layer=0)
logger.debug('Injected POA middleware')

return client


Expand Down
5 changes: 0 additions & 5 deletions sw_utils/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class BaseNetworkConfig:
GNO_TOKEN_CONTRACT_ADDRESS: ChecksumAddress
GENESIS_VALIDATORS_IPFS_HASH: str
CHAIN_ID: int
IS_POA: bool
FAR_FUTURE_EPOCH: int
SHAPELLA_FORK_VERSION: bytes
SHAPELLA_EPOCH: int
Expand Down Expand Up @@ -101,7 +100,6 @@ def SHAPELLA_FORK(self) -> ConsensusFork:
GNO_TOKEN_CONTRACT_ADDRESS=Web3.to_checksum_address(EMPTY_ADDR_HEX),
GENESIS_VALIDATORS_IPFS_HASH='bafybeigzq2ntq5zw4tdym5vckbf66mla5q3ge2fzdgqslhckdytlmm7k7y',
CHAIN_ID=1,
IS_POA=False,
FAR_FUTURE_EPOCH=18446744073709551615,
SHAPELLA_FORK_VERSION=Web3.to_bytes(hexstr=HexStr('0x03000000')),
SHAPELLA_EPOCH=194048,
Expand Down Expand Up @@ -141,7 +139,6 @@ def SHAPELLA_FORK(self) -> ConsensusFork:
),
GENESIS_FORK_VERSION=Web3.to_bytes(hexstr=HexStr('0x01017000')),
CHAIN_ID=17000,
IS_POA=False,
FAR_FUTURE_EPOCH=18446744073709551615,
SHAPELLA_FORK_VERSION=Web3.to_bytes(hexstr=HexStr('0x04017000')),
SHAPELLA_EPOCH=256,
Expand Down Expand Up @@ -185,7 +182,6 @@ def SHAPELLA_FORK(self) -> ConsensusFork:
),
GENESIS_FORK_VERSION=Web3.to_bytes(hexstr=HexStr('0x00000064')),
CHAIN_ID=100,
IS_POA=False,
FAR_FUTURE_EPOCH=18446744073709551615,
SHAPELLA_FORK_VERSION=Web3.to_bytes(hexstr=HexStr('0x03000064')),
SHAPELLA_EPOCH=648704,
Expand Down Expand Up @@ -227,7 +223,6 @@ def SHAPELLA_FORK(self) -> ConsensusFork:
),
GENESIS_FORK_VERSION=Web3.to_bytes(hexstr=HexStr('0x0000006f')),
CHAIN_ID=10200,
IS_POA=False,
FAR_FUTURE_EPOCH=18446744073709551615,
SHAPELLA_FORK_VERSION=Web3.to_bytes(hexstr=HexStr('0x0300006f')),
SHAPELLA_EPOCH=244224,
Expand Down

0 comments on commit 6024516

Please sign in to comment.