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 calculate basefee #1335

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

nimbus t8n does not calculate basefee #1335

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

Comments

@winsvega
Copy link

The basefee calculation is asked as follows:

Env:
{
    "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
    "currentDifficulty" : "0x020000",
    "currentNumber" : "0x00",
    "currentTimestamp" : "0x00",
    "currentGasLimit" : "0x01000000",
    "previousHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
    "parentBaseFee" : "0x0476",
    "parentGasUsed" : "0x00",
    "parentGasLimit" : "0x01000000"
}

Errors reported:

EIP-1559 config but missing 'currentBaseFee' in env section
Error: The command '/home/wins/.retesteth/nimbus/start.sh --state.fork London --state.reward -1 --state.chainid 1 --input.alloc /dev/shm/c7833c4d-8085-4ad7-be4d-074ad4700c16/alloc.json --input.txs /dev/shm/c7833c4d-8085-4ad7-be4d-074ad4700c16/txs.rlp --input.env /dev/shm/c7833c4d-8085-4ad7-be4d-074ad4700c16/env.json --output.basedir /dev/shm/c7833c4d-8085-4ad7-be4d-074ad4700c16 --output.result out.json --output.alloc outAlloc.json' exited with 768 code. (stExample/eip1559, step: GeneralStateTest)

If currentBaseFee not provided, the tool is asked to calculate baseFee
In env file the information is given:

    "parentBaseFee" : "0x0476",
    "parentGasUsed" : "0x00",
    "parentGasLimit" : "0x01000000"

and in result file expected calculated basefee in the field currentBaseFee

@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 the Nimbus log when it is asked to calculated baseFee
https://justpaste.it/a02k6

vs geth correct log
https://justpaste.it/5ud35

@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