zeta-chain / node

ZetaChain’s blockchain node and an observer validator client
https://zetachain.com
MIT License
164 stars 105 forks source link

Support forks and reorgs for the block header system #1723

Open brewmaster012 opened 8 months ago

brewmaster012 commented 8 months ago

On the zetacored block header state, each external chain of block headers must form a single chain. This is too rigid as there are rarely cases that a incorrect block header will be selected which is re-org'ed. A more robust approach would be allow branches -- but have simple fork-choice rule to invalidate stale/re-org'ed branches.

On the zetaclientd side, vote on proper block headers to form a chain.

lumtis commented 8 months ago

Thanks for the description. That makes sense. Maybe the issue title can be support forks and reorgs for the block header system