pchain-org / pchain

Pchain client-in-Go
https://plian.org
GNU General Public License v3.0
24 stars 12 forks source link

save one type of block to main chain #11

Closed pchain-org closed 5 years ago

pchain-org commented 6 years ago

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.