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

feat: optimistic roots smart contracts #3969

Merged
merged 8 commits into from
Apr 25, 2023

Conversation

gotzenx
Copy link
Contributor

@gotzenx gotzenx commented Apr 12, 2023

Description

Reduce gas consumption on the message layer to a fraction of the current cost by adding to the system the ability to operate in an optimistic mode when desired.
System will have two modes: Optimistic Mode and Slow Mode (current one).
Optimistic mode is based on an external agent fetching the inboundRoots and calculating the new aggregateRoot off-chain to propose on the RootManager contract.
The propose will have a dispute time where other off-chain agents will have the chance to verify that the proposed data is correct and dispute it if something is not right.
The way we propagate the aggregateRoots will not change.

Type of change

  • Docs change / dependency upgrade
  • Configuration / tooling changes
  • Refactoring
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires changes in customer code

High-level change(s) description - from the user's perspective

  • Messages will reach L1 (RootManager) faster and without the need of going through AMBs

Related Issue(s)

Related pull request(s)

0xGorilla and others added 2 commits April 11, 2023 17:39
* added necessary changes to allow optimistic mode and slow mode
* tests, tests and more tests
* natspec

Co-authored-by: gotzenx <gotzenx@users.noreply.github.com>
Co-authored-by: turtlemoji <turtlemoji@users.noreply.github.com>
Co-authored-by: ashitakah <ashitakah@users.noreply.github.com>
Copy link
Contributor

@LayneHaber LayneHaber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outside of those two small comments it lgtm!

@LayneHaber LayneHaber changed the base branch from main to staging April 22, 2023 20:36
@LayneHaber LayneHaber changed the base branch from staging to main April 22, 2023 20:36
@rhlsthrm rhlsthrm changed the base branch from main to staging April 24, 2023 12:41
@rhlsthrm rhlsthrm merged commit b1dfee9 into connext:staging Apr 25, 2023
@gotzenx gotzenx mentioned this pull request Jun 27, 2024
7 tasks
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.

6 participants