LiskHQ / lisk-sdk

🔩 Lisk software development kit

Home Page:https://lisk.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement MainchainRecoveryManager class

ishantiw opened this issue · comments

Description

  • Based on MainchainRecoveryManager class created in #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