Currently we save one type of block to main chain, which block contains the transaction of withdrawing balance from child chain to main chain.
We need add another type of block to save. After one epoch's validators has been settled in one block of child chain, this block should be saved to main chain. Thus main chain could save the epoch information to db and query it later.
Currently we save one type of block to main chain, which block contains the transaction of withdrawing balance from child chain to main chain.
We need add another type of block to save. After one epoch's validators has been settled in one block of child chain, this block should be saved to main chain. Thus main chain could save the epoch information to db and query it later.