Skip to content
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

nimbus t8n does not support BLOCKHASH opcode #1334

Closed
winsvega opened this issue Nov 28, 2022 · 2 comments · Fixed by #1354
Closed

nimbus t8n does not support BLOCKHASH opcode #1334

winsvega opened this issue Nov 28, 2022 · 2 comments · Fixed by #1354
Labels
bug Something isn't working

Comments

@winsvega
Copy link

winsvega commented Nov 28, 2022

The hashes implemented as this

/dev/shm/851f4478-6605-4d74-8bfe-09d68c186d4c/env.json

Env:
{
    "currentCoinbase" : "0x945304eb96065b2a98b57a48a06ae28d285a71b5",
    "currentNumber" : "0x01",
    "currentTimestamp" : "0x03e8",
    "currentGasLimit" : "0x7fffffffffffffff",
    "previousHash" : "0x0bd226be451838894540cac9344c4a8a61f834109609c30c3c5a86ab219f970d",
    "parentTimestamp" : "0x00",
    "parentDifficulty" : "0x020000",
    "parentUncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
    "blockHashes" : {
        "0" : "0x0bd226be451838894540cac9344c4a8a61f834109609c30c3c5a86ab219f970d"
    }
}

Errors reported:

getAncestorHash(131072) invoked, blockhash for that block not provided
Error: The command '/home/wins/.retesteth/nimbus/start.sh --state.fork Berlin --input.alloc /dev/shm/851f4478-6605-4d74-8bfe-09d68c186d4c/alloc.json --input.txs /dev/shm/851f4478-6605-4d74-8bfe-09d68c186d4c/txs.rlp --input.env /dev/shm/851f4478-6605-4d74-8bfe-09d68c186d4c/env.json --output.basedir /dev/shm/851f4478-6605-4d74-8bfe-09d68c186d4c --output.result out.json --output.alloc outAlloc.json' exited with 1024 code. (stRandom/randomStatetest32, fork: Berlin, TrInfo: d: 0, g: 0, v: 0, TrData: ` 0x42..`)

the blockhash 0 is known.
for all the rest inputs the result is the same as if block does not exist.

@jangko jangko added the bug Something isn't working label Nov 29, 2022
@jangko
Copy link
Contributor

jangko commented Dec 7, 2022

@winsvega: can you share your test vector with me? I have difficulty to reproduce it

@winsvega
Copy link
Author

winsvega commented Dec 7, 2022

Here is Nimbus log on such test

https://justpaste.it/atmpg

vs Geth Log

https://justpaste.it/b0cow

@jangko jangko mentioned this issue Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants