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 block gas limit based on settlement contracts to enable ISR-based fraud proofs #4

Open
mattdf opened this issue Dec 10, 2021 · 0 comments

Comments

@mattdf
Copy link

mattdf commented Dec 10, 2021

The settlement hub will require single round fraud proofs, which should eventually be implemented by making some modifications to the block production and EVM to allow for calculation and insertion of ISRs every N distinct state accesses.

For an initial implementation however it's possible to simulate this functionality, given a known set of deployed contracts, by limiting the block gas limit such that no single tx can exceed the N dynamic state accesses limit (contract calls not included given that they are fixed state in the hub).

The block gas limit should therefore be changed to be a hardcoded value that doesn't change other than by an update of the software itself, rather than being chosen by the block producers. Light clients and third party software should reject any tx or any block that attempts to use gas beyond this value.

To know what the value is, the settlement contracts need to be completed and (exhaustive-path) benchmarked first, so this issue is in part blocked by that effort, although the scaffolding to change the limit to versioned config rather than by block producer vote is orthogonal and can be worked on in paralle.

@liamsi liamsi moved this to TODO in Celestia Node Dec 15, 2021
@tzdybal tzdybal removed this from Celestia Node Nov 17, 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

No branches or pull requests

1 participant