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

Ethash: check possible invalid RLP input data in tests #943

Closed
jochem-brouwer opened this issue Nov 6, 2020 · 1 comment · Fixed by #1411
Closed

Ethash: check possible invalid RLP input data in tests #943

jochem-brouwer opened this issue Nov 6, 2020 · 1 comment · Fixed by #1411

Comments

@jochem-brouwer
Copy link
Member

jochem-brouwer commented Nov 6, 2020

validBlockRlp from ethash_block_rlp_tests.json has a lot of extraData (>32 bytes) if you try to create the block. The block number is 1 so it is not a Genesis block. This RLP should be invalid. What is the purpose of this extra data? Why is there an invalid block used as test in ethash?

@holgerd77
Copy link
Member

These kind of smaller issues should be validated and/or tackled at some point so that they don't lay around forever. 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants