Skip to content

Fix issue related to chain cloning#564

Merged
anishnaik merged 19 commits intomasterfrom
fix/blockhash-mismatch
Feb 5, 2025
Merged

Fix issue related to chain cloning#564
anishnaik merged 19 commits intomasterfrom
fix/blockhash-mismatch

Conversation

@anishnaik
Copy link
Copy Markdown
Collaborator

@anishnaik anishnaik commented Feb 5, 2025

This PR has a lot of little things.

Most importantly it closes #558. We now store a BaseBlockContext that holds the block number/timestamp when the block is first created. When you are cloning a block, you clone it with the base block context. Thus, you can allow warp and roll to update the block context while still preserving the original values.

Closes #551. We fixed how context cancellations were handled across the fuzzer and its workers.

Closes #556. We now improve logging before a call sequence is shrunk

Closes #562. We can now solve this edge case by updating how fixed byte arrays are generated.

Closes #547. We are deprecating the difficulty cheatcode because we are using a post-Paris EVM version. Thus, difficulty is a no-op. We also introduced prevrandao to update the block.prevrandao.

There was also a bug with logging optimization mode test cases. It's now fixed.

Finally, we updated some of the documentation because it was out of date.

@anishnaik anishnaik changed the title WIP: Fix bugs related to cheatcodes Fix issue related to chain cloning Feb 5, 2025
@anishnaik anishnaik merged commit 3cef3de into master Feb 5, 2025
@anishnaik anishnaik deleted the fix/blockhash-mismatch branch February 5, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant