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

prune pending chain if needed during propose and prove #8572

Closed
Tracked by #8401
just-mitch opened this issue Sep 16, 2024 · 0 comments · Fixed by #8617
Closed
Tracked by #8401

prune pending chain if needed during propose and prove #8572

just-mitch opened this issue Sep 16, 2024 · 0 comments · Fixed by #8617
Assignees

Comments

@just-mitch
Copy link
Collaborator

just-mitch commented Sep 16, 2024

Add L1 checks if the pending chain should be pruned when a new pending block is proposed, or a proof of epoch is submitted.

For this, we will need a skeleton Escrow contract with the following interface:

interface IEscrow {
    function deposit(uint256 amount, uint256 deadline) external;
    function stakeBond(Quote calldata quote) external returns (address); // returns the bond provider
    function unstakeBond(address bondProvider, uint256 amount) external;
    function withdraw(uint256 amount) external;
}

For the immediate term, these can largely be no-ops.

The purpose of this issue is to ensure that it is impossible to submit a pending block or a proof when there is a pending chain that can be pruned.

@github-project-automation github-project-automation bot moved this to Todo in A3 Sep 16, 2024
@just-mitch just-mitch self-assigned this Sep 16, 2024
This was referenced Sep 16, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant