lisk-sdk
lisk-sdk copied to clipboard
Implement MainchainRecoveryManager class
Description
- Based on
MainchainRecoveryManager
class created in https://github.com/LiskHQ/lisk-sdk/issues/9164 Implement all the methods for this class
class MainchainRecoveryManager extends BaseRecoveryManager {
private _messageRecoveryDB: Database;
constructor({ config, chainID, stateRecoveryDB, messageRecoveryDB, sidechainChainID }) {
super({ config, chainID, stateRecoveryDB });
this._messageRecoveryDB = messageRecoveryDB;
}
// saves CCMs and inclusion proof on the mainchain on every new block
public enableMessageRecovery() {}
// creates tx
public triggerMessageRecovery(chainID){
// gets information from DB
}
public cleanup()
}
Acceptance Criteria
- Should have all the unit tests