Skip to content

Add state tests for RANDOM opcode#1008

Closed
marioevz wants to merge 1 commit intodevelopfrom
randomOpcodeStateTests
Closed

Add state tests for RANDOM opcode#1008
marioevz wants to merge 1 commit intodevelopfrom
randomOpcodeStateTests

Conversation

@marioevz
Copy link
Copy Markdown
Member

@marioevz marioevz commented Jan 7, 2022

Requires: ethereum/retesteth/pull/160

This PR adds state tests for the RANDOM opcode.

Draft only since the required retesteth changes are still not merged.

@axic
Copy link
Copy Markdown
Member

axic commented Jun 23, 2022

How are these tests different to tests around DIFFICULTY?

@marioevz
Copy link
Copy Markdown
Member Author

How are these tests different to tests around DIFFICULTY?

They are not that much different at the moment. I would recommend using the hive tests to better test PREVRANDAO which comes from the Engine API.

@winsvega
Copy link
Copy Markdown

winsvega commented Nov 7, 2022

this makes sense as blockchain test as random is a property of blockchain header

@winsvega
Copy link
Copy Markdown

The case is covered in bc tests

@winsvega winsvega closed this Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants