Skip to content

Commit fa23f25

Browse files
committed
Clean up some unnecessary changes related to removing personal namespace
1 parent a5eb9cb commit fa23f25

File tree

8 files changed

+12
-15
lines changed

8 files changed

+12
-15
lines changed

tests/integration/generate_fixtures/common.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
KEYFILE_DATA = '{"address":"dc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd","crypto":{"cipher":"aes-128-ctr","ciphertext":"52e06bc9397ea9fa2f0dae8de2b3e8116e92a2ecca9ad5ff0061d1c449704e98","cipherparams":{"iv":"aa5d0a5370ef65395c1a6607af857124"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"9fdf0764eb3645ffc184e166537f6fe70516bf0e34dc7311dea21f100f0c9263"},"mac":"4e0b51f42b865c15c485f4faefdd1f01a38637e5247f8c75ffe6a8c0eba856f6"},"id":"5a6124e0-10f1-4c1c-ae3e-d903eacb740a","version":3}' # noqa: E501
3232

3333
KEYFILE_PW = "web3py-test"
34-
KEYFILE_PW_TXT = "keystore_pw.txt"
34+
KEYFILE_PW_TXT = "pw.txt"
3535
KEYFILE_FILENAME = "UTC--2017-08-24T19-42-47.517572178Z--dc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd" # noqa: E501
3636

3737
RAW_TXN_ACCOUNT = "0x39EEed73fb1D3855E90Cbd42f348b3D7b340aAA6"
@@ -52,6 +52,9 @@
5252
"arrowGlacierBlock": 0,
5353
"grayGlacierBlock": 0,
5454
"shanghaiTime": 0,
55+
# TODO: Remove this once this bug is fixed. We need to set TTD to -1 and
56+
# `difficulty` to `0` to trick geth into using the correct EVM rules for
57+
# `eth_estimateGas`. See: github.com/ethereum/go-ethereum/issues/29404
5558
"terminalTotalDifficulty": -1,
5659
"terminalTotalDifficultyPassed": True,
5760
},

tests/integration/generate_fixtures/go_ethereum.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def get_geth_process(geth_binary, datadir, geth_port):
9898
"--port",
9999
geth_port,
100100
"--password",
101-
os.path.join(datadir, "keystore_pw.txt"),
101+
os.path.join(datadir, "keystore", "pw.txt"),
102102
)
103103

104104
popen_proc = subprocess.Popen(
@@ -139,7 +139,7 @@ def generate_go_ethereum_fixture(destination_dir):
139139
keyfile_path = os.path.join(keystore_dir, common.KEYFILE_FILENAME)
140140
with open(keyfile_path, "w") as keyfile:
141141
keyfile.write(common.KEYFILE_DATA)
142-
keyfile_pw = os.path.join(datadir, common.KEYFILE_PW_TXT)
142+
keyfile_pw = os.path.join(keystore_dir, common.KEYFILE_PW_TXT)
143143
with open(keyfile_pw, "w") as keyfile_pw_file:
144144
keyfile_pw_file.write(common.KEYFILE_PW)
145145
genesis_file_path = os.path.join(datadir, "genesis.json")
4 Bytes
Binary file not shown.

tests/integration/go_ethereum/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def base_geth_command_arguments(geth_binary, datadir):
9696
"--dev.period",
9797
"5", # dev.period > 1 for tests which require pending blocks
9898
"--password",
99-
os.path.join(datadir, "keystore_pw.txt"),
99+
os.path.join(datadir, "keystore", "pw.txt"),
100100
)
101101

102102

tests/integration/go_ethereum/test_goethereum_http.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def geth_command_arguments(rpc_port, base_geth_command_arguments, get_geth_versi
6565

6666

6767
@pytest.fixture(scope="module")
68-
def w3(geth_process, endpoint_uri, geth_fixture_data, get_geth_version, datadir):
68+
def w3(geth_process, endpoint_uri):
6969
wait_for_http(endpoint_uri)
7070
return Web3(Web3.HTTPProvider(endpoint_uri))
7171

tests/integration/go_ethereum/test_goethereum_ipc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def geth_ipc_path(datadir):
4848

4949

5050
@pytest.fixture(scope="module")
51-
def w3(geth_process, geth_ipc_path, geth_fixture_data):
51+
def w3(geth_process, geth_ipc_path):
5252
wait_for_socket(geth_ipc_path)
5353
return Web3(Web3.IPCProvider(geth_ipc_path, timeout=30))
5454

tests/integration/go_ethereum/test_goethereum_ws/test_async_await_w3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
@pytest_asyncio.fixture(scope="module")
26-
async def async_w3(geth_process, endpoint_uri, geth_fixture_data):
26+
async def async_w3(geth_process, endpoint_uri):
2727
await wait_for_aiohttp(endpoint_uri)
2828

2929
# await the persistent connection itself

web3/tools/benchmark/node.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626

2727
GETH_FIXTURE_ZIP = "geth-1.13.14-fixture.zip"
2828

29-
# use same coinbase value as in `web3.py/tests/integration/generate_fixtures/common.py`
30-
COINBASE = "0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd"
31-
3229

3330
class GethBenchmarkFixture:
3431
def __init__(self) -> None:
@@ -84,19 +81,16 @@ def _geth_command_arguments(self, datadir: str) -> Sequence[str]:
8481
"--dev.period",
8582
"100",
8683
"--datadir",
87-
str(datadir),
84+
datadir,
8885
"--nodiscover",
8986
"--http",
9087
"--http.port",
9188
self.rpc_port,
9289
"--http.api",
9390
"admin,eth,net,web3",
9491
"--ipcdisable",
95-
"--allow-insecure-unlock",
96-
"--miner.etherbase",
97-
COINBASE[2:],
9892
"--password",
99-
os.path.join(datadir, "keystore_pw.txt"),
93+
os.path.join(datadir, "keystore", "pw.txt"),
10094
)
10195

10296
def _geth_process(

0 commit comments

Comments
 (0)