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
[x] Delete the transaction records with a block number strictly greater than the block number of the roll backward chain point.
[x] Delete the block range root records with a start greater or equal to the start of the block range compute from the roll backward chain point.
[x] Integration test with roll backward on signer and aggregator
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