-
Notifications
You must be signed in to change notification settings - Fork 318
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
reintroduce stEIP2537 tests #1366
Conversation
is there evmone/geth/numbus implementation of this EIP I can fix and refill and see if it works |
It appears that geth does. They merged the initial PR back in 2020 and just merged another one last week to update the precompile addresses. |
can't get the same result on latest geth as the test expects. (after changin 0x00a address to 0x00b ) |
How are you doing to make geth enable 2537? I'm not sure we have it exposed...? |
ah, I see, need to enable 2537. can it be plussed ? |
Since it adds precompiles, unfortunately it cannot be plussed. As soon as ethereum/go-ethereum#29552 is merged, they can be enabled using the name |
I was able to upgrade and refill 50% of the tests. I guess something went wrong in the remaining tests when trying to upgrade precompiles addresses in the bytecode. need investigation. the execution just gets reverted. and since the code is bytecode it is difficult to trace the logic. the reliability of the tests is low. since the expect section is not strong. it checks for some hashes but I am afraid the logic of the tests could be violated. as I get the correct hash for the expect section using different precompile addresses than the one intended in the tests. as of now I just moved all the precompile addresses +1 in the test fillers. @acolytec3 can you also generate fillers?
should I change the second data arg from |
Unfortunately, our client doesn't currently have this capability though @jochem-brouwer and I were discussing if there was a simple way for us to implement the necessary code to do so.
As as far as updating the tests, I haven't looked deeply enough into the calldata to actually know what all needs to be updated. I could just see from our own logging when trying to run these tests that the referenced precompile addresses were out of sync. Will need to look into the actual construction of the tests more to determine what other changes are needed. |
yes, I can't gurantee the test is doing meaningful logic, because I don't have the bytecode source. |
ok, I fixed all the tests now. the hashes match the expect section. please check with your specs and debug the vmtrace that it really does the bls logic. |
the tests are implementation of 2020, so it is in EIPTests and probably does not match the current implementation.
reintroduced by the request from ethereumjs