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

Backup registrations and assets on mev-commit chain #329

Open
shaspitz opened this issue Aug 8, 2024 · 1 comment
Open

Backup registrations and assets on mev-commit chain #329

shaspitz opened this issue Aug 8, 2024 · 1 comment

Comments

@shaspitz
Copy link
Contributor

shaspitz commented Aug 8, 2024

Currently we do not backup data/events specific to bidder/provider registrations that reside from the core contracts, nor the staked ETH amounts residing in those contracts.

For mainnet we should enable either of the following solutions, such that we can reconstruct critical registration and asset data on a new evm state, in the case of an emergency scenario.

Solution 1: Utilize frequent mev-commit chain snapshots (see #328) to be able to restore critical data quickly. This would require that we can spin up a dev chain or similar that can make this full snapshot state quickly accessible (under 1 hour).

Solution 2: Create an off-chain listener service that listens for specific events ProviderRegistered, BidderRegistered etc. and store entries for each one of these events in a db. Upon needing to restore critical state, we simply query the service for relevant data to send in new registration txes. This would also require a change that we enable the core contracts to accept bidder/provider registrations from an owner/admin account (on others behalf).

@kant777
Copy link
Contributor

kant777 commented Aug 19, 2024

we need to make sure the core contracts can paused

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

2 participants