-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t8n fails a unit tests when given input data as hex #1078
Comments
related issue: |
Here is the env json dump from python unit test
vs before the PR:
and alloc
vs before the PR
|
maybe block_hashes dict is an issue |
Here's the command to run the failing test in isolation:
|
Thanks @winsvega, I was also looking at this locally, when you posted. Here's the output as a diff. 42,45c42,45
< "currentGasLimit": "1000000000",
< "currentNumber": "5",
< "currentTimestamp": "1000",
< "currentDifficulty": "131072",
---
> "currentGasLimit": "0x3b9aca00",
> "currentNumber": "0x5",
> "currentTimestamp": "0x3e8",
> "currentDifficulty": "0x20000",
48c48
< "1": "0xdac58aa524e50956d0c0bae7f3f8bb9d35381365d07804dd5b48a5a297c06af4"
---
> "0x1": "0xdac58aa524e50956d0c0bae7f3f8bb9d35381365d07804dd5b48a5a297c06af4" @gurukamath perhaps this helps? As Dimitry said, perhaps its the unexpected hex key to the "env": {
"currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentGasLimit": "0x3b9aca00",
"currentNumber": "0x5",
"currentTimestamp": "0x3e8",
"currentDifficulty": "0x20000",
"parentUncleHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"blockHashes": {
"0x1": "0xdac58aa524e50956d0c0bae7f3f8bb9d35381365d07804dd5b48a5a297c06af4"
},
"ommers": [],
"parentHash": "0xdac58aa524e50956d0c0bae7f3f8bb9d35381365d07804dd5b48a5a297c06af4"
} |
Ah, why is the @gurukamath hang on a sec, this might be a problem with the unit test data on our side. |
Hm why it then doesn't fail on main? |
Ah. Yes. This could be an issue. I think we expect the |
Thanks @gurukamath! It does seem like an obvious culprit, but perhaps not! We discussed the data sent to t8n in the unit test in question and it's generally correct, except one apparent inconsistency in the
However, as the Here's the relevant part of the trace from the fail if that helps:
|
also hashes being identical is related to question of "to what extent, t8n must verify validity of the inputs" |
We have a problem in test generation.
Currently pyspecs uses decimal inputs provided to t8n in env.json
But some t8n's implemented only hex format without leading zeros
We try switching to hex format now, but one of the unit tests with exec specs t8n fails:
To reproduce run
uvx --with=tox-uv tox -e pytest
on this tests branch
export_int_as_hex
ethereum/execution-spec-tests#1027Make sure that t8n accept field format of hex for int types
in env.json
The text was updated successfully, but these errors were encountered: