celestiaorg / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Other
19 stars 33 forks source link

feat: Implement fraudproof generation mode in cosmos-sdk #250

Closed Manav-Aggarwal closed 2 years ago

Manav-Aggarwal commented 2 years ago

Description

Before: When an optimint full node finds a fraudulent block, it tells cosmos-sdk to go into fraudproof generation mode.

After: optimint can supply cosmos-sdk with a fraudulent block and tell it to actually generate a fraudproof.

In the fraudproof generation mode, a cosmos-sdk app reverts its state to a previous state before the fraudulent block was applied and enables tracing for modules specified by optimint.

Parts covered from the cycle of a fraudproof:

Optimint Full Node (Producer of fraudproof)

  1. In the fraudproof generation mode, a cosmos-sdk app reverts its state to a previous state before the fraudulent block is applied and enables tracing.

Builds on top of #256

Closes: #249


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.

I have...

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.

I have...

Manav-Aggarwal commented 2 years ago

everything is moved to cosmos-sdk-rollmint repo