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

Limit blockchain access in execute_in_block_context to the blocks present in the block context #285

Open
Tracked by #303
Wodann opened this issue Feb 5, 2024 · 0 comments

Comments

@Wodann
Copy link
Member

Wodann commented Feb 5, 2024

When the execute_in_block_context function is called, the callback receives an immutable reference to a blockchain. Currently, we always return the latest blockchain or a pending blockchain. For historic blocks, the view of the blockchain should be limited to the range of blocks that had already been mined.

The design of this fix could be affected by #284.

Definition of Done
A test demonstrating the soundness issue when retrieving "future" blocks and a fix that ensures the proper error is returned when an unknown block is requested.

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

No branches or pull requests

2 participants