You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("fusaka-devnet-3 geth does not support eth_config")
178
-
returnNone
152
+
pytest.exit("fusaka-devnet-3 geth does not support eth_config!")
179
153
180
154
# generate client-specific URLs from provided rpc_endpoint (it does not matter which client the original rpc_endpoint specifies) # noqa: E501
181
155
# we want all combinations of consensus and execution clients (sometimes an exec client is only reachable via a subset of consensus client combinations) # noqa: E501
182
156
pattern=r"(.*?@rpc\.)([^-]+)-([^-]+)(-.*)"
183
-
url_dict: Dict[str, List[str]] = {
157
+
url_dict: Dict[str, List[EthRPC]] = {
184
158
exec_client: [
185
-
re.sub(
186
-
pattern,
187
-
f"\\g<1>{consensus}-{exec_client}\\g<4>",
188
-
rpc_endpoint,
159
+
EthRPC(
160
+
re.sub(
161
+
pattern,
162
+
f"\\g<1>{consensus}-{exec_client}\\g<4>",
163
+
rpc_endpoint,
164
+
)
189
165
)
190
166
forconsensusinCONSENSUS_CLIENTS
191
167
]
192
168
forexec_clientinel_clients
193
169
}
194
170
# url_dict looks like this:
195
171
# {
196
-
# 'besu': ["url for grandine+besu", "url for lighthouse+besu"], ...
197
-
# 'erigon': ["url for grandine+erigon", "url for lighthouse+erigon"], ...
172
+
# 'besu': [<EthRPC that holds url for grandine+besu>, <EthRPC that holds url for lighthouse+besu>, ..], # noqa: E501
"Critical consensus issue: Not all eth_config responses are the same!"
270
+
"Critical consensus issue: Not all eth_config responses are the same! "
271
+
f"Here is an overview of client response hashes:\n{'\n\t'.join(f'{k}: {v}'fork, vinclient_to_hash_dict.items())}\n\n"# noqa: E501
272
+
f"Here is an overview of which URLs were contacted:\n\t{'\n\t'.join(f'{k}: @{v.split("@")[1]}'fork, vinclient_to_url_used_dict.items())}\n\n"# log which cl+el combinations were used without leaking full url # noqa: E501
273
+
f"Here is a dump of all client responses:\n{'\n\n'.join(f'{k}: {v}'fork, vinresponses.items())}"# noqa: E501
0 commit comments