LiskArchive / lisk-sdk

🔩 Lisk software development kit
https://lisk.com
Apache License 2.0
2.72k stars 454 forks source link

Implement MainchainRecoveryManager class #9165

Open ishantiw opened 10 months ago

ishantiw commented 10 months ago

Description

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