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

proposal: [processor]: load L1Block tx from local filesystem to repair database states on startup #2844

Open
popcnt1 opened this issue Nov 2, 2024 · 1 comment
Assignees
Labels
proposal New external API or other notable changes
Milestone

Comments

@popcnt1
Copy link
Collaborator

popcnt1 commented Nov 2, 2024

Proposal Details

Background:

sequenced tx and executed tx are persisted by two atomic writes, when sequenced tx written but executed tx not, we have to re-execute it on startup for local transaction store.

But for L1Block tx, we only keep block meta but not body on local disk. So we have to find a way to pass L1 Block data.

Approach:

When we meet the startup error caused by lacking L1Block tx, we could make it on local. Processor could load these local data to re-execute L1 Block tx.

@popcnt1 popcnt1 added the proposal New external API or other notable changes label Nov 2, 2024
@popcnt1 popcnt1 self-assigned this Nov 2, 2024
@jolestar
Copy link
Contributor

We already write the L1 Block and tx to Move contract, we can directly re-execute it.

@jolestar jolestar added this to the Rooch v0.8 milestone Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal New external API or other notable changes
Projects
Status: No status
Development

No branches or pull requests

2 participants