input-output-hk / mithril

Stake-based threshold multi-signatures protocol
https://mithril.network
Apache License 2.0
115 stars 36 forks source link

Handle rollbacks in Cardano transactions #1724

Closed jpraynaud closed 3 weeks ago

jpraynaud commented 1 month ago

Why

When the transaction importer receives a RollBackward action event, it means that part of the data stored in the database are stale and need to be deleted. Also it means that the import of transactions must be done from a new chain point (given by the roll backward).

What

Delete the transaction recorded after the roll backward chain point and the block range root records computed after the roll backward chain point. The import of the transactions should resume after handling the rollback.

How